update class super constructor inheritance tests
This commit is contained in:
@@ -9,7 +9,7 @@ var BaseController = (function (_Chaplin$Controller) {
|
||||
_classCallCheck(this, BaseController);
|
||||
|
||||
if (Object.getPrototypeOf(BaseController) !== null) {
|
||||
Object.getPrototypeOf(BaseController).apply(instance, arguments);
|
||||
Object.getPrototypeOf(BaseController).apply(this, arguments);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,11 +23,11 @@ var BaseController2 = (function (_Chaplin$Controller$Another) {
|
||||
_classCallCheck(this, BaseController2);
|
||||
|
||||
if (Object.getPrototypeOf(BaseController2) !== null) {
|
||||
Object.getPrototypeOf(BaseController2).apply(instance, arguments);
|
||||
Object.getPrototypeOf(BaseController2).apply(this, arguments);
|
||||
}
|
||||
}
|
||||
|
||||
_inherits(BaseController2, _Chaplin$Controller$Another);
|
||||
|
||||
return BaseController2;
|
||||
})(Chaplin.Controller.Another);
|
||||
})(Chaplin.Controller.Another);
|
||||
|
||||
@@ -9,11 +9,11 @@ var Test = (function (Foo) {
|
||||
_classCallCheck(this, Test);
|
||||
|
||||
if (Object.getPrototypeOf(Test) !== null) {
|
||||
Object.getPrototypeOf(Test).apply(instance, arguments);
|
||||
Object.getPrototypeOf(Test).apply(this, arguments);
|
||||
}
|
||||
}
|
||||
|
||||
_inherits(Test, Foo);
|
||||
|
||||
return Test;
|
||||
})(Foo);
|
||||
})(Foo);
|
||||
|
||||
@@ -11,11 +11,11 @@ var Foo = (function (Bar) {
|
||||
_classCallCheck(this, Foo);
|
||||
|
||||
if (Object.getPrototypeOf(Foo) !== null) {
|
||||
Object.getPrototypeOf(Foo).apply(instance, arguments);
|
||||
Object.getPrototypeOf(Foo).apply(this, arguments);
|
||||
}
|
||||
}
|
||||
|
||||
_inherits(Foo, Bar);
|
||||
|
||||
return Foo;
|
||||
})(Bar);
|
||||
})(Bar);
|
||||
|
||||
Reference in New Issue
Block a user