1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

fix failure of deepCompare to compare arrays

what a difference a character can make
This commit is contained in:
Richard van der Hoff
2016-04-06 18:14:34 +01:00
parent 1d2c705e13
commit 384c474800

View File

@@ -301,7 +301,7 @@ var deepCompare = module.exports.deepCompare = function(x, y) {
}
for (var i = 0; i < x.length; i++) {
if (deepCompare(x[i], y[i])) {
if (!deepCompare(x[i], y[i])) {
return false;
}
}