Skip to content

Commit 8134c17

Browse files
committed
Merge pull request #1162 from WanderWang/develop
change API name from cc.Control.removeTargetWithActionForControlEvent to _removeTargetWithActionForControlEvent
2 parents c1e5c0b + 0f452ea commit 8134c17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/GUI/CCControlExtension/CCControl.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ cc.Control = cc.LayerRGBA.extend({
220220
for (var i = 0, len = cc.CONTROL_EVENT_TOTAL_NUMBER; i < len; i++) {
221221
// If the given controlEvents bitmask contains the current event
222222
if ((controlEvents & (1 << i)))
223-
this.removeTargetWithActionForControlEvent(target, action, 1 << i);
223+
this._removeTargetWithActionForControlEvent(target, action, 1 << i);
224224
}
225225
},
226226

@@ -305,7 +305,7 @@ cc.Control = cc.LayerRGBA.extend({
305305
* @param {function} action A selector identifying an action message. Pass NULL to remove all action messages paired with target.
306306
* @param {Number} controlEvent A control event for which the action message is sent. See "CCControlEvent" for constants.
307307
*/
308-
removeTargetWithActionForControlEvent:function (target, action, controlEvent) {
308+
_removeTargetWithActionForControlEvent:function (target, action, controlEvent) {
309309
// Retrieve all invocations for the given control event
310310
//<CCInvocation*>
311311
var eventInvocationList = this._dispatchListforControlEvent(controlEvent);

0 commit comments

Comments
 (0)