1
0
mirror of synced 2025-03-11 15:16:09 +03:00

fixed invalid index in buildChangeDetails, fixes #1858

This commit is contained in:
Max Bruchmann 2013-10-31 17:55:19 +01:00
parent cb7aefaeda
commit 2d13c0a00a

View File

@ -3005,7 +3005,9 @@ the specific language governing permissions and limitations under the Apache Lic
for (var j = 0; j < old.length; j++) { for (var j = 0; j < old.length; j++) {
if (equal(this.opts.id(current[i]), this.opts.id(old[j]))) { if (equal(this.opts.id(current[i]), this.opts.id(old[j]))) {
current.splice(i, 1); current.splice(i, 1);
if(i>0){
i--; i--;
}
old.splice(j, 1); old.splice(j, 1);
j--; j--;
} }