Fire 'object:selected' only once

The event 'object:selected' should only be called on first activation.
Fixes #584
This commit is contained in:
Stefan Kienzle 2013-04-26 11:55:13 +03:00
parent 4e1a26cc11
commit acfddabe16

View file

@ -227,7 +227,7 @@
target = this.getActiveGroup();
}
else {
if (target !== this.getActiveGroup()) {
if (target !== this.getActiveGroup() && target !== this.getActiveObject()) {
this.deactivateAll();
this.setActiveObject(target, e);
}