We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80f564b + 8727c49 commit 448af35Copy full SHA for 448af35
cocos2d/base_nodes/CCNode.js
@@ -1193,6 +1193,7 @@ cc.NodeWebGL = cc.Class.extend(/** @lends cc.NodeWebGL# */{
1193
//continue moving element downwards while zOrder is smaller or when zOrder is the same but mutatedIndex is smaller
1194
while (j >= 0 && ( tempItem._zOrder < tempChild._zOrder ||
1195
( tempItem._zOrder == tempChild._zOrder && tempItem._orderOfArrival < tempChild._orderOfArrival ))) {
1196
+ tempChild = _children[j];
1197
_children[j + 1] = tempChild;
1198
j = j - 1;
1199
}
0 commit comments