optimize selection option equals

This commit is contained in:
AllenFang
2019-04-07 14:31:43 +08:00
parent 204e75c9c2
commit 6d5cca0047
@@ -17,8 +17,9 @@ function optionsEquals(currOpts, prevOpts) {
return false;
}
}
return true;
}
return currOpts.length === prevOpts.length;
return false;
}
const keys = Object.keys(currOpts);
for (let i = 0; i < keys.length; i += 1) {