From 7cc303a9049a5acf725ef9bb73f25ae98c059138 Mon Sep 17 00:00:00 2001 From: Welling Guzman Date: Fri, 9 Sep 2016 10:35:09 -0400 Subject: [PATCH] Falsy values are accepted as default values, except undefined. Fixes #1256 --- app/core/UIManager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/core/UIManager.js b/app/core/UIManager.js index cf96c87935bf5..24bf16c68332e 100644 --- a/app/core/UIManager.js +++ b/app/core/UIManager.js @@ -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; } }