mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-09 17:01:01 +00:00
Allow options with falsy values (e.g. 0 or "")
This commit is contained in:
parent
3340173e60
commit
dd4f178389
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue