Commit 265b6276 authored by Joel Copi's avatar Joel Copi
Browse files

Fix for infinite loop issue in parent

parent fe2e2f13
......@@ -204,7 +204,7 @@
for (var i = 0; i < this.length; i++) {
result.push(this[i].parentNode);
/* check all previously found parents to make sure none are repeated */
for (var ii = i; i--; check = check && result[i] !== result[ii]);
for (var ii = i; ii--; check = check && result[i] !== result[ii]);
if (!check) result.pop();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment