Fix issubset implementation

Current implementation is not valid as it will return false when the element is
not present on one of the list, but it should return false only if the element
is not on both lists.

issue5669
review28391002
This commit is contained in:
Sergi Almacellas Abellana committed 2016-06-30 10:44:06 +02:00
1 parent ad5d55ca70
commit 04ce9b6715
1 file changed
+1 -1
+1 -1
View File
@@ -1126,7 +1126,7 @@
if (!jQuery.isEmptyObject(fields)) {
var result = true;
fields.forEach(function(field) {
if (!(field in this._loaded) | !(field in this._changed)) {
if (!(field in this._loaded) && !(field in this._changed)) {
result = false;
}
}.bind(this));