Skip to content

Commit

Permalink
Falsy values are accepted as default values, except undefined. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Sep 9, 2016
1 parent 87cb2ff commit 7cc303a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/core/UIManager.js
Expand Up @@ -334,7 +334,9 @@ define(function(require, exports, module) {
var attribute = this.attributes[attr];
if (this.defaultAttributes && attribute === undefined) {
var defaultAttribute = this.defaultAttributes[attr];
if (defaultAttribute) {
// Falsy values are accepted as default values
// excepted undefined (#1256)
if (defaultAttribute !== undefined) {
attribute = defaultAttribute;
}
}
Expand Down

0 comments on commit 7cc303a

Please sign in to comment.