Skip to content

Commit

Permalink
Merge pull request #310 from flightjs/allow_undefined_optional_attrs
Browse files Browse the repository at this point in the history
allow for optional, undefined attributes
  • Loading branch information
danwrong committed Sep 16, 2014
2 parents 6128f57 + 167409a commit 6958b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() + '".');
}
Expand Down

0 comments on commit 6958b42

Please sign in to comment.