From a49b33d58fc9d49f44e59c80b10513d67bb402cb Mon Sep 17 00:00:00 2001 From: Alon Robinson Date: Fri, 23 Feb 2018 14:17:30 -0600 Subject: [PATCH] fixes #11 --- Polymer 2 - modulesLoaded.some is not a function --- px-view.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/px-view.html b/px-view.html index 63971d2..01305a8 100644 --- a/px-view.html +++ b/px-view.html @@ -45,7 +45,7 @@ type: Boolean, value: false }, - + /** * * Set to true to load this view asynchronously. @@ -236,7 +236,7 @@ that.set('status', 'loaded'); } else { var modulesLoaded = Polymer.dom(that._importLink.import).querySelectorAll('dom-module'); - if (modulesLoaded.some(function(ele) {return ele.id === that._elementTagName;})) { + if (Array.prototype.some.call(modulesLoaded, function(ele) {return ele.id === that._elementTagName;})) { that.set('status', 'loaded'); } else { console.log('Error: dom-module of imported element does not match element tag name');