diff --git a/app/code/Magento/Ui/view/base/web/js/lib/registry/storage.js b/app/code/Magento/Ui/view/base/web/js/lib/registry/storage.js index ae3063cb07c2035df1189b86912792636bd35874..22c3457e6ae01d4b3b40a4892d6690abb6c54433 100644 --- a/app/code/Magento/Ui/view/base/web/js/lib/registry/storage.js +++ b/app/code/Magento/Ui/view/base/web/js/lib/registry/storage.js @@ -70,6 +70,10 @@ define([ has: function (elems) { var data = this.data; + if (elems.length === 0) { + return false; + } + return elems.every(function (elem) { return data.has(elem); });