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
Not sure if we can rely on native super, it's likely it can't be the case, then I imagine it as:
this.super('methodName')();
Where internal implementation could be similar to:
Base.prototype.super=function(propName){varcurrentObject=this,superObject,superValue;while(!currentObject.hasOwnProperty(propName)){currentObject=Object.getPrototypeOf(currentObject);if(!currentObject)return;}superObject=Object.getPrototypeOf(currentObject);if(!superObject)return;superValue=superObject[propName];// TODO: Take into account getter caseif(typeofsuperValue==='function')superValue=Function.prototype.bind.call(superValue,this);returnsuperValue;};
The text was updated successfully, but these errors were encountered:
Not sure if we can rely on native super, it's likely it can't be the case, then I imagine it as:
Where internal implementation could be similar to:
The text was updated successfully, but these errors were encountered: