You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please correct me if I'm wrong, but my interpretation of the code is that the purpose of the Class.override function (as called from Class.prototype.implement), is to give the overriding (new) method access to the overridden (old) method in the this.parent field.
When I tried to use this, however, I got a error about too much recursion.
I think this is because this.parent is assigned object[name] during the function call, but by this point object[name] is already the inner var override function that is being called.
Please correct me if I'm wrong, but my interpretation of the code is that the purpose of the
Class.override
function (as called fromClass.prototype.implement
), is to give the overriding (new) method access to the overridden (old) method in thethis.parent
field.When I tried to use this, however, I got a error about too much recursion.
I think this is because
this.parent
is assignedobject[name]
during the function call, but by this pointobject[name]
is already the innervar override
function that is being called.Changing the method to:
seemed to solve the problem for me
The text was updated successfully, but these errors were encountered: