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:
1 parent
ad5d55ca70
commit
04ce9b6715
1 file changed
+1
-1
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user