mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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
|
* @type Boolean
|
||||||
*/
|
*/
|
||||||
isEmpty: function() {
|
isEmpty: function() {
|
||||||
return this._children.length == 0;
|
return !this._children || this._children.length == 0;
|
||||||
}
|
}
|
||||||
}, Base.each(['getBounds', 'getStrokeBounds', 'getHandleBounds', 'getRoughBounds'],
|
}, Base.each(['getBounds', 'getStrokeBounds', 'getHandleBounds', 'getRoughBounds'],
|
||||||
function(name) {
|
function(name) {
|
||||||
|
|
Loading…
Reference in a new issue