mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-04 11:54:47 +00:00
Remove reference to lastRenderedWithControls when that object is deleted (#3023)
This commit is contained in:
parent
b52ca6ff55
commit
da42b293d3
1 changed files with 11 additions and 0 deletions
|
|
@ -1361,6 +1361,17 @@
|
|||
this._objects[i]._renderControls(ctx);
|
||||
this.lastRenderedWithControls = this._objects[i];
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @param {fabric.Object} obj Object that was removed
|
||||
*/
|
||||
_onObjectRemoved: function(obj) {
|
||||
if (obj === this.lastRenderedWithControls) {
|
||||
delete this.lastRenderedWithControls;
|
||||
}
|
||||
this.callSuper('_onObjectRemoved', obj);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue