NavneetK
2007-Dec-05  10:37 UTC
Prototype.js does not set objects''s constructor property properly
create a class myClass using prototype.js''s Class.create()
then create an object foo  of that myClass
then "object.constructor" will return
"function Object() { [native code for Object.Object, arity=1] }"
should be myClass
does prototype.js does not set the constructor property properly
if i create the class using
function myClass(){};
foo = new myClass()
foo.constructor
will give
function myClass() {}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---