Skip to content
This repository has been archived by the owner on Oct 27, 2019. It is now read-only.

Commit

Permalink
* Adding a way to get the source names
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Sep 13, 2010
1 parent 9755829 commit 8a730cc
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions Helpers/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ context.SpecLoader = function(config, options){

var getDefault = function(){
return config.presets[config.defaultPresets[envName]];
},
};

getSets = function(){
var getSets = function(){
var requestedSets = [],
sets = (preset || options).sets || getDefault().sets;

Expand All @@ -48,9 +48,9 @@ context.SpecLoader = function(config, options){
});

return requestedSets;
},
};

getSource = function(){
var getSource = function(){
var requestedSource = [],
source = (preset || options).source || getDefault().source;

Expand All @@ -59,15 +59,15 @@ context.SpecLoader = function(config, options){
});

return requestedSource;
},
};

loadSets = function(){
var loadSets = function(){
forEach(setNames, function(set){
specLoader(config.sets[set].files, config.sets[set].path);
});
},
};

loadSource = function(){
var loadSource = function(){
forEach(sourceNames, function(set){
sourceLoader(config.source[set].files, config.source[set].path);
});
Expand Down Expand Up @@ -107,7 +107,12 @@ context.SpecLoader = function(config, options){

getSetNames: function(){
return setNames;
},

getSourceNames: function(){
return sourceNames;
}

};

};
Expand Down

0 comments on commit 8a730cc

Please sign in to comment.