Skip to content

Commit

Permalink
fix: initial modules not registered
Browse files Browse the repository at this point in the history
Ok so this was a really stupid mistake that was around for a long time, but that was not a problem until I changed the code to allow the reconfig...
And as often the fix is ridiculously simple! :)

Fixes #58
Fixes #71
Fixes #73
Fixes #77
  • Loading branch information
ocombe committed Nov 2, 2014
1 parent bda921b commit bcf5000
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ocLazyLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,10 @@
names[name] = true;
append(document.getElementById(name));
name = name.replace(':', '\\:');
if(element.querySelectorAll) {
angular.forEach(element.querySelectorAll('.' + name), append);
angular.forEach(element.querySelectorAll('.' + name + '\\:'), append);
angular.forEach(element.querySelectorAll('[' + name + ']'), append);
if(element[0].querySelectorAll) {
angular.forEach(element[0].querySelectorAll('.' + name), append);
angular.forEach(element[0].querySelectorAll('.' + name + '\\:'), append);
angular.forEach(element[0].querySelectorAll('[' + name + ']'), append);
}
});

Expand Down

1 comment on commit bcf5000

@renandegrandi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the solution, helped me a lot!

Please sign in to comment.