Hi All,

A newbie javascript syntax question.  Why does using prototype
property within a namespace fail?    To be precise I have commented
where the error occurs in the following code:

----
config.macros.myMacro = {
  handler: function(place, macroName) {/* ... */},
  School: function(){/*...*/},
   //  School.prototype.method1: function(){/*..*/}  // ERROR!
};
config.macros.myMacro.School.prototype.method2=function(){/*..*/};  //
OK!
----

Is this a syntax issue or just not possible to use "prototype" within
the namesapce.  If it helps the actual error I get is:   "Error:
SyntaxError: missing : after property id"

Thanks,

Michael.
--
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to TiddlyWikiDev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to