Skip to content

Commit

Permalink
Update Class.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wizard04wsu authored Feb 27, 2019
1 parent 92bfbfb commit 6fbf049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Class.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
// 4) Possibly if the prototype chain has been screwed with

if(this.constructor === newClass.prototype.constructor){
//this function is the constructor of the new instance (i.e., it's not a super-class constructor)
//this function is the constructor of the new instance (i.e., it's not a parent class's constructor)

defineProperty(this, "constructor", newClass, true, false, true);
}
Expand Down

0 comments on commit 6fbf049

Please sign in to comment.