From ea2ab5607953e88fdab9b1fb7c1330fce378ddf1 Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Mon, 21 Mar 2016 14:23:57 +0800 Subject: [PATCH] fix interactive state change issue. ticket id: https://github.com/cocos-creator/fireball/issues/2426#event-596704935 --- cocos2d/core/components/CCButton.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/cocos2d/core/components/CCButton.js b/cocos2d/core/components/CCButton.js index 13748bf4dc..856e2716da 100644 --- a/cocos2d/core/components/CCButton.js +++ b/cocos2d/core/components/CCButton.js @@ -416,8 +416,6 @@ var Button = cc.Class({ }, _onMouseMoveOut: function(){ - if (!this.interactable || !this.enabledInHierarchy) return; - if (this._hovered) { this._hovered = false; this._updateState();