Skip to content

Commit

Permalink
Fix issue with clearing bounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
gskinner committed Nov 21, 2016
1 parent ededacf commit 993834e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/easeljs/display/DisplayObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ this.createjs = this.createjs||{};
* @param {Number} height The height of the bounds.
**/
p.setBounds = function(x, y, width, height) {
if (x == null) { this._bounds = x; }
if (x == null) { this._bounds = x; return; }
this._bounds = (this._bounds || new createjs.Rectangle()).setValues(x, y, width, height);
};

Expand Down

0 comments on commit 993834e

Please sign in to comment.