diff --git a/cocos2d/core/sprites/CCScale9Sprite.js b/cocos2d/core/sprites/CCScale9Sprite.js index 9f7155e527..310f5a4b7f 100644 --- a/cocos2d/core/sprites/CCScale9Sprite.js +++ b/cocos2d/core/sprites/CCScale9Sprite.js @@ -1171,6 +1171,9 @@ cc.Scale9Sprite = _ccsg.Node.extend({ this._renderCmd._needDraw = false; var self = this; function onResourceDataLoaded () { + if (!self.isValid) { + return; + } if (self._contentSize.width === 0 && self._contentSize.height === 0) { self.setContentSize(self._spriteFrame._rect); }