Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
Oops, that's important. No infinite loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Oct 8, 2014
1 parent 30b58e8 commit f4f8f82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Nymph.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,10 @@ license LGPL
}
if (!changed) {
// If there are any unexpected errors and the array isn't changed, just stick the rest on the end.
if (array.length)
if (array.length) {
new_array = new_array.concat(array);
array = [];
}
}
}
// Now push the new array out.
Expand Down

0 comments on commit f4f8f82

Please sign in to comment.