Fix JSB bugs

This commit is contained in:
pandamicro
2016-02-18 23:19:00 +08:00
parent 4a4af849e6
commit d79cd80b94
3 changed files with 11 additions and 3 deletions
+7 -1
View File
@@ -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;