update class super constructor inheritance tests

This commit is contained in:
Sebastian McKenzie
2015-02-04 10:03:57 +11:00
parent 36fa174901
commit b1f0ecf244
3 changed files with 7 additions and 7 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);