We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7b61e8 commit f0c33aaCopy full SHA for f0c33aa
1 file changed
src/ocLazyLoad.core.js
@@ -71,7 +71,7 @@
71
names[name] = true;
72
append(document.getElementById(name));
73
name = name.replace(':', '\\:');
74
- if(element[0].querySelectorAll) {
+ if(typeof(element[0]) !== 'undefined' && element[0].querySelectorAll) {
75
angular.forEach(element[0].querySelectorAll(`.${ name }`), append);
76
angular.forEach(element[0].querySelectorAll(`.${ name }\\:`), append);
77
angular.forEach(element[0].querySelectorAll(`[${ name }]`), append);
0 commit comments