Merge pull request #265 from duckmaestro/master

Fix to #263: _children undefined inside call to myShape.isEmpty().
This commit is contained in:
Jürg Lehni 2013-08-08 17:24:10 -07:00
commit 46f6261d38

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