Skip to content

Commit 449949b

Browse files
author
SeanLin
committed
Merge pull request #593 from dingpinglv/iss1509_UpdateMenuTest
fixed #1509 correct Scheduler's bug
2 parents 4b6df52 + 861aca4 commit 449949b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cocos2d/CCScheduler.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,8 @@ cc.Scheduler = cc.Class.extend(/** @lends cc.Scheduler# */{
490490
//update hash entry for quick access
491491
var hashElement = new cc.HashUpdateEntry(ppList, listElement, target, null);
492492
this._hashForUpdates.push(hashElement);
493+
494+
return ppList;
493495
},
494496

495497
_appendIn:function (ppList, target, paused) {
@@ -694,10 +696,10 @@ cc.Scheduler = cc.Class.extend(/** @lends cc.Scheduler# */{
694696
if (priority == 0) {
695697
this._appendIn(this._updates0List, target, paused);
696698
} else if (priority < 0) {
697-
this._priorityIn(this._updatesNegList, target, priority, paused);
699+
this._updatesNegList = this._priorityIn(this._updatesNegList, target, priority, paused);
698700
} else {
699701
// priority > 0
700-
this._priorityIn(this._updatesPosList, target, priority, paused);
702+
this._updatesPosList = this._priorityIn(this._updatesPosList, target, priority, paused);
701703
}
702704
},
703705

0 commit comments

Comments
 (0)