From 91ded1783489fbe37f534317c1427deff3ef75fd Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Thu, 16 Jun 2016 17:10:18 +0800 Subject: [PATCH] add _previousNormalSprite to ctor --- cocos2d/core/components/CCButton.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocos2d/core/components/CCButton.js b/cocos2d/core/components/CCButton.js index 8e882baf3f..f18a763a0a 100644 --- a/cocos2d/core/components/CCButton.js +++ b/cocos2d/core/components/CCButton.js @@ -111,6 +111,9 @@ var Button = cc.Class({ this._toColor = null; this._time = 0; this._transitionFinished = true; + if(CC_EDITOR) { + this._previousNormalSprite = null; + } }, editor: CC_EDITOR && {