From a22b669d021abfc7bf5280197a3ccd4fe2bf80ea Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Tue, 8 Nov 2016 17:43:54 +0800 Subject: [PATCH] remove unused logic --- cocos2d/core/components/CCButton.js | 1 - 1 file changed, 1 deletion(-) diff --git a/cocos2d/core/components/CCButton.js b/cocos2d/core/components/CCButton.js index 6a207010b0..1b0309d1a8 100644 --- a/cocos2d/core/components/CCButton.js +++ b/cocos2d/core/components/CCButton.js @@ -416,7 +416,6 @@ var Button = cc.Class({ update: function (dt) { var target = this.target; - if(!target) return; if(this._transitionFinished) return; if (this.transition !== Transition.COLOR && this.transition !== Transition.SCALE) return;