Skip to content

Commit

Permalink
null check on setActive (#3435)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Nov 20, 2016
1 parent 28ecef0 commit 6861289
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/canvas.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -1477,9 +1477,11 @@
deactivateAll: function () {
var allObjects = this.getObjects(),
i = 0,
len = allObjects.length;
len = allObjects.length,
obj;
for ( ; i < len; i++) {
allObjects[i].set('active', false);
obj = allObjects[i];
obj && obj.set('active', false);
}
this._discardActiveGroup();
this._discardActiveObject();
Expand Down

0 comments on commit 6861289

Please sign in to comment.