Skip to content

Commit a9dfb7c

Browse files
authored
Merge pull request #3384 from ronyeh/develop
Fix: doEnumerateRecursive(node, name, callback) now returns the return value.
2 parents 31837c0 + b957fb1 commit a9dfb7c

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

Diff for: cocos2d/actions/CCAction.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ cc.Action = cc.Class.extend(/** @lends cc.Action# */{
185185
},
186186

187187
/**
188-
* Currently JavaScript Bindigns (JSB), in some cases, needs to use retain and release. This is a bug in JSB, <br/>
188+
* Currently JavaScript Bindings (JSB), in some cases, needs to use retain and release. This is a bug in JSB, <br/>
189189
* and the ugly workaround is to use retain/release. So, these 2 methods were added to be compatible with JSB. <br/>
190190
* This is a hack, and should be removed once JSB fixes the retain/release bug.
191191
*/
192192
retain:function () {
193193
},
194194

195195
/**
196-
* Currently JavaScript Bindigns (JSB), in some cases, needs to use retain and release. This is a bug in JSB, <br/>
196+
* Currently JavaScript Bindings (JSB), in some cases, needs to use retain and release. This is a bug in JSB, <br/>
197197
* and the ugly workaround is to use retain/release. So, these 2 methods were added to be compatible with JSB. <br/>
198198
* This is a hack, and should be removed once JSB fixes the retain/release bug.
199199
*/
@@ -238,7 +238,7 @@ cc.Action.create = cc.action;
238238
* @extends cc.Action
239239
*/
240240
cc.FiniteTimeAction = cc.Action.extend(/** @lends cc.FiniteTimeAction# */{
241-
//! duration in seconds
241+
// duration in seconds
242242
_duration:0,
243243

244244
/**
@@ -562,7 +562,7 @@ cc.Follow = cc.Action.extend(/** @lends cc.Follow# */{
562562
*
563563
* @param {Boolean} value
564564
*/
565-
setBoudarySet:function (value) {
565+
setBoundarySet:function (value) {
566566
this._boundarySet = value;
567567
},
568568

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;

Diff for: cocos2d/core/base-nodes/CCNode.js

+1
Original file line numberDiff line numberDiff line change
@@ -2513,6 +2513,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
25132513
}
25142514
}
25152515
}
2516+
return ret;
25162517
},
25172518

25182519
doEnumerate: function(name, callback){

0 commit comments

Comments
 (0)