From ff72181b52e323d21d495b1d8691257a1aa8d6eb Mon Sep 17 00:00:00 2001 From: Luis Camacho Date: Thu, 20 Apr 2017 11:39:49 +0100 Subject: [PATCH] Fix __super__ by not copying it from the parent when subclassing (#5456) --- src/core/Class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Class.js b/src/core/Class.js index 639d2f81..81c73427 100644 --- a/src/core/Class.js +++ b/src/core/Class.js @@ -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]; } }