mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Merge pull request #265 from duckmaestro/master
Fix to #263: _children undefined inside call to myShape.isEmpty().
This commit is contained in:
commit
46f6261d38
1 changed files with 1 additions and 1 deletions
|
@ -774,7 +774,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
* @type Boolean
|
||||
*/
|
||||
isEmpty: function() {
|
||||
return this._children.length == 0;
|
||||
return !this._children || this._children.length == 0;
|
||||
}
|
||||
}, Base.each(['getBounds', 'getStrokeBounds', 'getHandleBounds', 'getRoughBounds'],
|
||||
function(name) {
|
||||
|
|
Loading…
Reference in a new issue