diff --git a/lib/base.js b/lib/base.js index f4ac127f..a1b4eb63 100644 --- a/lib/base.js +++ b/lib/base.js @@ -59,7 +59,7 @@ define( for (var key in this.attrDef.prototype) { if (typeof attrs[key] == 'undefined') { - if (this.attr[key] == null) { + if (this.attr[key] === null) { throw new Error('Required attribute "' + key + '" not specified in attachTo for component "' + this.toString() + '".'); }