Skip to content

Commit b9ba236

Browse files
committed
Move Shape#isEmpty() to right place.
1 parent 198305b commit b9ba236

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/item/Shape.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ var Shape = Item.extend(/** @lends Shape# */{
2121
_class: 'Shape',
2222
_transformContent: false,
2323

24-
isEmpty: function() {
25-
// A shape can never be "empty" in the sense that it does not hold a
26-
// definition. This is required for Group#bounds to work correctly when
27-
// containing a Shape.
28-
return false;
29-
},
30-
3124
initialize: function Shape(type, point, size, props) {
3225
this._initialize(props, point);
3326
this._type = type;
@@ -70,6 +63,13 @@ var Shape = Item.extend(/** @lends Shape# */{
7063
this.setSize(size, size);
7164
},
7265

66+
isEmpty: function() {
67+
// A shape can never be "empty" in the sense that it does not hold a
68+
// definition. This is required for Group#bounds to work correctly when
69+
// containing a Shape.
70+
return false;
71+
},
72+
7373
_draw: function(ctx, param) {
7474
var style = this._style,
7575
size = this._size,

0 commit comments

Comments
 (0)