From d14da3ebd83fba266fa857d84147ad2f0b9a84ec Mon Sep 17 00:00:00 2001 From: subzerokangaroo Date: Thu, 24 Dec 2015 21:37:07 +0000 Subject: [PATCH] Allow updates to settings to be false Any updates that are falsey don't pass this check i.e. "false", "" or 0. --- src/tipso.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tipso.js b/src/tipso.js index 83b9999..17ebbf4 100644 --- a/src/tipso.js +++ b/src/tipso.js @@ -374,7 +374,7 @@ }, update: function(key, value) { var obj = this; - if (value) { + if (typeof(value) !== "undefined") { obj.settings[key] = value; } else { return obj.settings[key];