mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Fix JSB bugs
This commit is contained in:
+7
-1
@@ -77,7 +77,13 @@ cc.js.mixin(cc.Event.prototype, {
|
||||
|
||||
// cc.Event.EventCustom
|
||||
cc.Event.EventCustom = function (type, bubbles) {
|
||||
cc.Event.call(this, cc.Event.CUSTOM);
|
||||
this.target = null;
|
||||
this.currentTarget = null;
|
||||
this.eventPhase = 0;
|
||||
this._defaultPrevented = false;
|
||||
this._propagationStopped = false;
|
||||
this._propagationImmediateStopped = false;
|
||||
|
||||
this.type = type;
|
||||
this.bubbles = bubbles || false;
|
||||
this.detail = null;
|
||||
|
||||
Reference in New Issue
Block a user