Update object.class.js

as suggested by Kienz.
This commit is contained in:
asturur 2014-06-24 15:38:14 +02:00
parent a95897313f
commit 22b0149e49

View file

@ -1304,7 +1304,7 @@
* canvas.renderAll();
*/
setShadow: function(options) {
return this.set('shadow', new fabric.Shadow(options));
return this.set('shadow', options ? new fabric.Shadow(options) : null);
},
/**