diff --git a/extensions/GUI/CCControlExtension/CCControl.cpp b/extensions/GUI/CCControlExtension/CCControl.cpp index 558f96005a..6c42dc3b97 100644 --- a/extensions/GUI/CCControlExtension/CCControl.cpp +++ b/extensions/GUI/CCControlExtension/CCControl.cpp @@ -37,7 +37,6 @@ NS_CC_EXT_BEGIN CCControl::CCControl() : m_bIsOpacityModifyRGB(false) -, m_nDefaultTouchPriority(0) , m_eState(CCControlStateNormal) , m_hasVisibleParents(false) , m_bEnabled(false) @@ -76,8 +75,7 @@ bool CCControl::init() setHighlighted(false); // Set the touch dispatcher priority by default to 1 - setDefaultTouchPriority(1); - this->setTouchPriority(m_nDefaultTouchPriority); + this->setTouchPriority(1); // Initialise the tables m_pDispatchTable = new CCDictionary(); diff --git a/extensions/GUI/CCControlExtension/CCControl.h b/extensions/GUI/CCControlExtension/CCControl.h index eca6dc5222..0eb1348531 100644 --- a/extensions/GUI/CCControlExtension/CCControl.h +++ b/extensions/GUI/CCControlExtension/CCControl.h @@ -91,8 +91,6 @@ class CCControl : public CCLayerRGBA //CCRGBAProtocol bool m_bIsOpacityModifyRGB; - /** Changes the priority of the button. The lower the number, the higher the priority. */ - CC_SYNTHESIZE(int, m_nDefaultTouchPriority, DefaultTouchPriority); /** The current control state constant. */ CC_SYNTHESIZE_READONLY(CCControlState, m_eState, State);