mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-17 20:50:58 +00:00
Clone options object of animate (to avoid conflicts)
This commit is contained in:
parent
d47ed61d49
commit
4a84bf92a7
1 changed files with 7 additions and 1 deletions
|
|
@ -1826,7 +1826,13 @@
|
|||
var obj = this;
|
||||
|
||||
to = to.toString();
|
||||
options || (options = { });
|
||||
|
||||
if (!options) {
|
||||
options = { };
|
||||
}
|
||||
else {
|
||||
options = fabric.util.object.clone(options);
|
||||
}
|
||||
|
||||
if (!('from' in options)) {
|
||||
options.from = this.get(property);
|
||||
|
|
|
|||
Loading…
Reference in a new issue