Create a new branch called bug/super/copilot based on the branch bug/super. Make commits to the bug/super/copilot branch, and make a PR from that branch back to bug/super. Only make changes to files in the toplevel src directory.
This code creates a new class called "XXX" that has "YYY" as a parent class:
var XXX = makeSubclass('XXX', YYY, function (...) { ... });
Methods of class "XXX" may use the super property via the this keyword or self variable, like this:
XXX.prototype.foo = function () {
var self = this;
self.super.foo();
};
In all files in the toplevel src directory that contain such references to the "super" property, rewrite them so that it uses a property of "super" instead, like this:
The utility code has already been updated so that the "super" property of the instance will contain an object pointing to all ancestor classes. Any code that directly invokes a method on this.super or self.super needs to be updated.
Create a new branch called
bug/super/copilotbased on the branchbug/super. Make commits to thebug/super/copilotbranch, and make a PR from that branch back tobug/super. Only make changes to files in the toplevelsrcdirectory.This code creates a new class called "XXX" that has "YYY" as a parent class:
Methods of class "XXX" may use the super property via the
thiskeyword orselfvariable, like this:In all files in the toplevel
srcdirectory that contain such references to the "super" property, rewrite them so that it uses a property of "super" instead, like this:The utility code has already been updated so that the "super" property of the instance will contain an object pointing to all ancestor classes. Any code that directly invokes a method on
this.superorself.superneeds to be updated.