mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 02:02:41 +08:00
don't emit EventCustom in Toggle
This commit is contained in:
@@ -167,10 +167,10 @@ var Toggle = cc.Class({
|
||||
}
|
||||
},
|
||||
|
||||
_emitToggleEvents: function (event) {
|
||||
_emitToggleEvents: function () {
|
||||
this.node.emit('toggle', this);
|
||||
if(this.checkEvents) {
|
||||
cc.Component.EventHandler.emitEvents(this.checkEvents, event, this);
|
||||
cc.Component.EventHandler.emitEvents(this.checkEvents, this);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user