Skip to content

Commit

Permalink
fix bug in method Image.setSrc() (#5502)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelQZQ authored and asturur committed Feb 16, 2019
1 parent 850c617 commit d6649b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes/image.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@
fabric.util.loadImage(src, function(img) {
this.setElement(img, options);
this._setWidthHeight();
callback(this);
callback && callback(this);
}, this, options && options.crossOrigin);
return this;
},
Expand Down

0 comments on commit d6649b2

Please sign in to comment.