mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Remove doc comment since Item#isEmpty() is already documented, and move it to an inline comment.
This commit is contained in:
parent
bc85dd1dc3
commit
198305b75c
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue