Remove unnecessary renderAll calls. Thanks @Kienz. Closes #587

This commit is contained in:
kangax 2013-04-26 21:48:52 -04:00
parent acfddabe16
commit d755d64c76
5 changed files with 8 additions and 10 deletions

5
dist/all.js vendored
View file

@ -8470,9 +8470,8 @@ fabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @lends fab
this.setActiveGroup(group);
group.saveCoords();
this.fire('selection:created', { target: group });
this.renderAll();
}
this.renderAll();
},
/**
@ -8900,7 +8899,7 @@ fabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @lends fab
this._currentTransform = null;
if (this._groupSelector) {
if (this.selection && this._groupSelector) {
// group selection was completed, determine its bounds
this._findSelectedObjects(e);
}

8
dist/all.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/all.min.js.gz vendored

Binary file not shown.

View file

@ -672,9 +672,8 @@
this.setActiveGroup(group);
group.saveCoords();
this.fire('selection:created', { target: group });
this.renderAll();
}
this.renderAll();
},
/**

View file

@ -144,7 +144,7 @@
this._currentTransform = null;
if (this._groupSelector) {
if (this.selection && this._groupSelector) {
// group selection was completed, determine its bounds
this._findSelectedObjects(e);
}