mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-02 19:14:42 +00:00
pass activeObject to event
This commit is contained in:
parent
a15d480d07
commit
ffe49ccf9c
1 changed files with 2 additions and 2 deletions
|
|
@ -1391,7 +1391,7 @@
|
|||
var active = this._activeObject;
|
||||
if (active) {
|
||||
if (active.type === 'activeSelection' && active._objects) {
|
||||
return active._objects;
|
||||
return active._objects.slice(0);
|
||||
}
|
||||
else {
|
||||
return [active];
|
||||
|
|
@ -1487,7 +1487,7 @@
|
|||
if (activeObject) {
|
||||
this.fire('before:selection:cleared', { target: activeObject, e: e });
|
||||
if (this._discardActiveObject(e)) {
|
||||
this.fire('selection:cleared', { e: e });
|
||||
this.fire('selection:cleared', { e: e, target: activeObject });
|
||||
activeObject.fire('deselected', { e: e });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue