diff --git a/src/easeljs/display/DisplayObject.js b/src/easeljs/display/DisplayObject.js index 3ce9e90c3..c156ac224 100644 --- a/src/easeljs/display/DisplayObject.js +++ b/src/easeljs/display/DisplayObject.js @@ -1163,8 +1163,8 @@ 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; } - this._bounds = (this._bounds || new createjs.Rectangle()).setValues(x, y, width, height); + if (x == null) { this._bounds = null; } + else { this._bounds = (this._bounds || new createjs.Rectangle()).setValues(x, y, width, height); } }; /**