How would i access the klass.prototype.init function from the global window? This exmaple is from javascript web applciations (orielly). var Class = function(){ var klass = fu
Solution 1:
How would i access the klass.prototype.init function
By window.Person.prototype.init.
klass is what is returned from Class(), and is assigned to window.Person. Btw you shouldn't use new with Class here.
Share
Post a Comment
for "Access To Returned Prototype Functions Inside Another Function"
Post a Comment for "Access To Returned Prototype Functions Inside Another Function"