|
@@ -448,7 +448,7 @@ define("amber/boot", [ 'require', './browser-compatibility' ], function (require
|
|
st.addClass = function(className, superclass, iVarNames, pkgName) {
|
|
st.addClass = function(className, superclass, iVarNames, pkgName) {
|
|
// While subclassing nil is allowed, it might be an error, so
|
|
// While subclassing nil is allowed, it might be an error, so
|
|
// warn about it.
|
|
// warn about it.
|
|
- if (!superclass || superclass == nil) {
|
|
|
|
|
|
+ if (typeof superclass == 'undefined' || superclass == nil) {
|
|
console.warn('Compiling ' + className + ' as a subclass of `nil`. A dependency might be missing.');
|
|
console.warn('Compiling ' + className + ' as a subclass of `nil`. A dependency might be missing.');
|
|
}
|
|
}
|
|
rawAddClass(pkgName, className, superclass, iVarNames, false, null);
|
|
rawAddClass(pkgName, className, superclass, iVarNames, false, null);
|