Uberproto should provide a mechanism to check whether this._super is itself
Closed this issue · 3 comments
Ran into this when trying to test things in isolation. The component I am testing could be inherited from or it could not. When trying to test it when it doesn't have something inheriting from it this._super
refers to itself so we en in an infinite loop when calling this._super.apply(this, arguments)
.
I ran into this one time, too but there usually is a way around. The only way I can currently think of is using arguments.callee
which won't work in ES 5 strict mode. I wonder if there is a way to check if we are setting _super
to the same function and not do it but then you'd get an undefined
error.
Is this still an issue? If there is a test case we can try and fix it otherwise I would close this issue.
Nah not really an issue. Close it!