This commit is contained in:
Zixaphir 2014-01-11 15:05:37 -07:00
parent dcb734afff
commit efc2fd5bd2
3 changed files with 6 additions and 6 deletions

View File

@ -13108,11 +13108,11 @@
cbs = klass.callbacks;
fn = function() {
var node;
if (!(node = nodes[i++])) {
if (!(node = nodes[i])) {
return false;
}
cbs.execute(node);
return i % 25;
return ++i % 25;
};
softTask = function() {
while (fn()) {

View File

@ -13085,11 +13085,11 @@
cbs = klass.callbacks;
fn = function() {
var node;
if (!(node = nodes[i++])) {
if (!(node = nodes[i])) {
return false;
}
cbs.execute(node);
return i % 25;
return ++i % 25;
};
softTask = function() {
while (fn()) {

View File

@ -182,9 +182,9 @@ Main =
cbs = klass.callbacks
fn = ->
return false unless node = nodes[i++]
return false unless node = nodes[i]
cbs.execute node
i % 25
++i % 25
softTask = ->
while fn()