Remove doc comment since Item#isEmpty() is already documented, and move it to an inline comment.

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

View file

@ -21,13 +21,10 @@ var Shape = Item.extend(/** @lends Shape# */{
_class: 'Shape',
_transformContent: false,
/**
* Assumed that shape can never be empty.
* Fixes (new Group([new Shape.Rectangle(...)])).bounds throwing ReferenceError.
*
* @returns bool
*/
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;
},