mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-13 08:13:13 +00:00
Update elements_parser.js
This commit is contained in:
parent
347debb677
commit
848005c61b
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ fabric.ElementsParser.prototype._createObject = function(klass, el, index) {
|
|||
else {
|
||||
var obj = klass.fromElement(el, this.options);
|
||||
this.reviver && this.reviver(el, obj);
|
||||
this.instances.splice(index, 1, obj);
|
||||
this.instances[index] = obj;
|
||||
this.checkIfDone();
|
||||
}
|
||||
};
|
||||
|
|
@ -53,7 +53,7 @@ fabric.ElementsParser.prototype.createCallback = function(index, el) {
|
|||
var _this = this;
|
||||
return function(obj) {
|
||||
_this.reviver && _this.reviver(el, obj);
|
||||
_this.instances.splice(index, 1, obj);
|
||||
_this.instances[index] = obj;
|
||||
_this.checkIfDone();
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue