From dd4f178389ecdb0b604d53dcfe7c69fcd67b3779 Mon Sep 17 00:00:00 2001 From: kangax Date: Tue, 1 Mar 2011 19:26:24 -0500 Subject: [PATCH] Allow options with falsy values (e.g. 0 or "") --- src/object.class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object.class.js b/src/object.class.js index 2078f4d9..cb20fca2 100644 --- a/src/object.class.js +++ b/src/object.class.js @@ -119,7 +119,7 @@ var i = this.stateProperties.length, prop; while (i--) { prop = this.stateProperties[i]; - if (options[prop]) { + if (prop in options) { (prop === 'angle') ? this.setAngle(options[prop]) : (this[prop] = options[prop]);