Skip to content

Commit

Permalink
fix: test order
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Jul 23, 2014
1 parent 5c8a04a commit 8412cb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ocLazyLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,24 +464,24 @@

this.config = function(config) {
if(angular.isDefined(config.jsLoader) || angular.isDefined(config.asyncLoader)) {
jsLoader = config.jsLoader || config.asyncLoader;
if(!angular.isFunction(jsLoader)) {
throw('The js loader needs to be a function');
}
jsLoader = config.jsLoader || config.asyncLoader;
}

if(angular.isDefined(config.cssLoader)) {
cssLoader = config.cssLoader;
if(!angular.isFunction(cssLoader)) {
throw('The css loader needs to be a function');
}
cssLoader = config.cssLoader;
}

if(angular.isDefined(config.templatesLoader)) {
templatesLoader = config.templatesLoader;
if(!angular.isFunction(templatesLoader)) {
throw('The template loader needs to be a function');
}
templatesLoader = config.templatesLoader;
}

// for bootstrap apps, we need to define the main module name
Expand Down

0 comments on commit 8412cb4

Please sign in to comment.