tag:blogger.com,1999:blog-34454975.post115875030734513386..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: anonymous function prototypeAndrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-34454975.post-1158755424271724952006-09-20T14:30:00.000+02:002006-09-20T14:30:00.000+02:00maybe some example during the post isn't well form...maybe some example during the post isn't well formed ...<BR/><BR/>When you set a prototype to a function, only using this one as constructor will set the prototype (I forget some "new").<BR/><BR/>Then this should be a better example:<BR/><BR/>function anonymous(){};<BR/>anonymous.prototype.isAnonymous = true;<BR/>var test = new (new Function);<BR/>alert(test.isAnonymous); // undefined<BR/><BR/>However, the problem is the same, and the solution is the same too :)Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.com