From f4f8f827a38328e279c0bccad4b566ca6d8ea96c Mon Sep 17 00:00:00 2001 From: Hunter Perrin Date: Wed, 8 Oct 2014 00:16:24 -0700 Subject: [PATCH] Oops, that's important. No infinite loops. --- src/Nymph.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Nymph.js b/src/Nymph.js index 5d92f31..e7a7d53 100644 --- a/src/Nymph.js +++ b/src/Nymph.js @@ -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.