use more descriptive variable name

This commit is contained in:
Dan Allison
2014-03-01 10:23:51 -08:00
committed by John-David Dalton
parent ff26080c5c
commit d25ab4f204

View File

@@ -2929,14 +2929,14 @@
} }
var result = Array(length), var result = Array(length),
adjust = -1, adjust = -1,
removal, prev; removal, previous;
while(++index < length) { while(++index < length) {
removal = removals[index]; removal = removals[index];
if (removal === prev) { if (removal === previous) {
result[index] = result[index - 1]; result[index] = result[index - 1];
continue; continue;
} }
prev = removal; previous = removal;
result[index] = splice.call(array, removal - ++adjust, 1)[0]; result[index] = splice.call(array, removal - ++adjust, 1)[0];
} }
return result; return result;