Skip to content
Snippets Groups Projects
Commit 8ee98f69 authored by Zaets Volodymyr's avatar Zaets Volodymyr
Browse files

MAGETWO-39772: has method in Storage class returned incorrect value

parent a09b7a16
Branches
No related merge requests found
...@@ -68,6 +68,9 @@ define([], function () { ...@@ -68,6 +68,9 @@ define([], function () {
has: function (elems) { has: function (elems) {
var data = this.data; var data = this.data;
if (elems.length === 0)
return false;
return elems.every(function (elem) { return elems.every(function (elem) {
return typeof data[elem] !== 'undefined'; return typeof data[elem] !== 'undefined';
}); });
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment