Skip to content

Update usages of the super property #23

Description

@tvenable-mie

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:

self.super['YYY'].foo();

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions