Fix to #263: _children undefined inside call to myShape.isEmpty().

This commit is contained in:
Clifford Champion 2013-07-27 23:47:49 -07:00
parent 5e8ec2066b
commit 2d3200c8d7

View file

@ -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) {