mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-16 22:10:32 +00:00
fix bug in method Image.setSrc() (#5502)
This commit is contained in:
parent
850c617bd9
commit
d6649b2efb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue