Make parent constructor check explicit when extending from null - fixes #386

This commit is contained in:
James Kyle 2015-01-04 13:42:29 -08:00
parent 7345899343
commit 3b4c9c415e
4 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,3 @@
if (SUPER_NAME) { if (SUPER_NAME !== null) {
SUPER_NAME.apply(this, arguments); SUPER_NAME.apply(this, arguments);
} }

View File

@ -15,7 +15,7 @@ var _inherits = function (child, parent) {
var BaseController = (function () { var BaseController = (function () {
var _Chaplin$Controller = Chaplin.Controller; var _Chaplin$Controller = Chaplin.Controller;
var BaseController = function BaseController() { var BaseController = function BaseController() {
if (_Chaplin$Controller) { if (_Chaplin$Controller !== null) {
_Chaplin$Controller.apply(this, arguments); _Chaplin$Controller.apply(this, arguments);
} }
}; };
@ -28,7 +28,7 @@ var BaseController = (function () {
var BaseController2 = (function () { var BaseController2 = (function () {
var _Chaplin$Controller$Another = Chaplin.Controller.Another; var _Chaplin$Controller$Another = Chaplin.Controller.Another;
var BaseController2 = function BaseController2() { var BaseController2 = function BaseController2() {
if (_Chaplin$Controller$Another) { if (_Chaplin$Controller$Another !== null) {
_Chaplin$Controller$Another.apply(this, arguments); _Chaplin$Controller$Another.apply(this, arguments);
} }
}; };

View File

@ -15,7 +15,7 @@ var _inherits = function (child, parent) {
var Test = (function () { var Test = (function () {
var _Foo = Foo; var _Foo = Foo;
var Test = function Test() { var Test = function Test() {
if (_Foo) { if (_Foo !== null) {
_Foo.apply(this, arguments); _Foo.apply(this, arguments);
} }
}; };

View File

@ -25,7 +25,7 @@ var _inherits = function (child, parent) {
var Foo = (function () { var Foo = (function () {
var _Bar = Bar; var _Bar = Bar;
var Foo = function Foo() { var Foo = function Foo() {
if (_Bar) { if (_Bar !== null) {
_Bar.apply(this, arguments); _Bar.apply(this, arguments);
} }
}; };