Access To Returned Prototype Functions Inside Another Function
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
How would i access the klass.prototype.init function
By window.Person.prototype.init
.
klass
is what is return
ed from Class()
, and is assigned to window.Person
. Btw you shouldn't use new
with Class
here.
Post a Comment for "Access To Returned Prototype Functions Inside Another Function"