Allow options with falsy values (e.g. 0 or "")

This commit is contained in:
kangax 2011-03-01 19:26:24 -05:00
parent 3340173e60
commit dd4f178389

View file

@ -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]);