Fix __super__ by not copying it from the parent when subclassing (#5456)
This commit is contained in:
parent
cbaf02034c
commit
ff72181b52
@ -35,7 +35,7 @@ Class.extend = function (props) {
|
|||||||
|
|
||||||
// inherit parent's statics
|
// inherit parent's statics
|
||||||
for (var i in this) {
|
for (var i in this) {
|
||||||
if (this.hasOwnProperty(i) && i !== 'prototype') {
|
if (this.hasOwnProperty(i) && i !== 'prototype' && i !== '__super__') {
|
||||||
NewClass[i] = this[i];
|
NewClass[i] = this[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user