Move Shape#isEmpty() to right place.

This commit is contained in:
Jürg Lehni 2013-10-14 09:15:34 +02:00
parent 198305b75c
commit b9ba2364fe

View file

@ -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,