Skip to content

Commit

Permalink
Small change for #35 to fix trailing commas in $ocLazyLoad.load([]) a…
Browse files Browse the repository at this point in the history
…rrays.
  • Loading branch information
taz committed Jul 22, 2014
1 parent 91cc409 commit 4b64f90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ocLazyLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@
if(angular.isArray(module)) {
// Resubmit each entry as a single module
angular.forEach(module, function(m) {
deferredList.push(self.load(m, params));
if (m) {
deferredList.push(self.load(m, params));
}
});

// Resolve the promise once everything has loaded
Expand Down

0 comments on commit 4b64f90

Please sign in to comment.