diff --git a/src/basic/Rectangle.js b/src/basic/Rectangle.js index 78957f2e..837d7154 100644 --- a/src/basic/Rectangle.js +++ b/src/basic/Rectangle.js @@ -455,6 +455,7 @@ var Rectangle = this.Rectangle = Base.extend(/** @lends Rectangle# */{ * } */ contains: function(rect) { + // TODO: improve handling of passed Rectangle or Point if (rect.width !== undefined) { return rect.x >= this.x && rect.y >= this.y && rect.x + rect.width <= this.x + this.width