mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
@@ -1045,7 +1045,7 @@ var Node = cc.Class({
|
||||
},
|
||||
|
||||
_checkTouchListeners: function () {
|
||||
if (this._bubblingListeners && this._touchListener) {
|
||||
if (!(this._objFlags & Destroying) && this._bubblingListeners && this._touchListener) {
|
||||
for (var i = 0; i < _touchEvents.length; ++i) {
|
||||
if (this._bubblingListeners.has(_touchEvents[i])) {
|
||||
return;
|
||||
@@ -1057,7 +1057,7 @@ var Node = cc.Class({
|
||||
}
|
||||
},
|
||||
_checkMouseListeners: function () {
|
||||
if (this._bubblingListeners && this._mouseListener) {
|
||||
if (!(this._objFlags & Destroying) && this._bubblingListeners && this._mouseListener) {
|
||||
for (var i = 0; i < _mouseEvents.length; ++i) {
|
||||
if (this._bubblingListeners.has(_mouseEvents[i])) {
|
||||
return;
|
||||
|
||||
@@ -701,7 +701,7 @@ var Component = cc.Class({
|
||||
repeat = isNaN(repeat) ? cc.macro.REPEAT_FOREVER : repeat;
|
||||
delay = delay || 0;
|
||||
|
||||
cc.director.getScheduler().schedule(callback, this, interval, repeat, delay, !this.enabledInHierarchy, this.__instanceId);
|
||||
cc.director.getScheduler().scheduleCallbackForTarget(this, callback, interval, repeat, delay, !this.enabledInHierarchy);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user