Skip to content

Commit b957fb1

Browse files
committed
Fix bug where PRIORITY_NON_SYSTEM is NaN. Moved the constant into the cc.Scheduler namespace for consistency with PRIORITY_SYSTEM.
1 parent d7f91d6 commit b957fb1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: cocos2d/core/CCScheduler.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
****************************************************************************/
2626

2727

28-
/**
29-
* Minimum priority level for user scheduling.
30-
* @constant
31-
* @type Number
32-
*/
33-
cc.PRIORITY_NON_SYSTEM = cc.PRIORITY_SYSTEM + 1;
3428

3529
//data structures
3630
/**
@@ -1029,9 +1023,17 @@ cc.Scheduler = cc.Class.extend(/** @lends cc.Scheduler# */{
10291023
this.unscheduleAllWithMinPriority(minPriority);
10301024
}
10311025
});
1026+
10321027
/**
10331028
* Priority level reserved for system services.
10341029
* @constant
10351030
* @type Number
10361031
*/
10371032
cc.Scheduler.PRIORITY_SYSTEM = (-2147483647 - 1);
1033+
1034+
/**
1035+
* Minimum priority level for user scheduling.
1036+
* @constant
1037+
* @type Number
1038+
*/
1039+
cc.Scheduler.PRIORITY_NON_SYSTEM = cc.Scheduler.PRIORITY_SYSTEM + 1;

0 commit comments

Comments
 (0)