Fix __super__ by not copying it from the parent when subclassing (#5456)

This commit is contained in:
Luis Camacho 2017-04-20 11:39:49 +01:00 committed by Per Liedman
parent cbaf02034c
commit ff72181b52

View File

@ -35,7 +35,7 @@ Class.extend = function (props) {
// inherit parent's statics
for (var i in this) {
if (this.hasOwnProperty(i) && i !== 'prototype') {
if (this.hasOwnProperty(i) && i !== 'prototype' && i !== '__super__') {
NewClass[i] = this[i];
}
}