diff --git a/src/item/Shape.js b/src/item/Shape.js index e03094e8..11a98696 100644 --- a/src/item/Shape.js +++ b/src/item/Shape.js @@ -21,13 +21,6 @@ var Shape = Item.extend(/** @lends Shape# */{ _class: 'Shape', _transformContent: false, - isEmpty: function() { - // A shape can never be "empty" in the sense that it does not hold a - // definition. This is required for Group#bounds to work correctly when - // containing a Shape. - return false; - }, - initialize: function Shape(type, point, size, props) { this._initialize(props, point); this._type = type; @@ -70,6 +63,13 @@ var Shape = Item.extend(/** @lends Shape# */{ this.setSize(size, size); }, + isEmpty: function() { + // A shape can never be "empty" in the sense that it does not hold a + // definition. This is required for Group#bounds to work correctly when + // containing a Shape. + return false; + }, + _draw: function(ctx, param) { var style = this._style, size = this._size,