diff --git a/api.js b/api.js index 40ea352..f06d200 100644 --- a/api.js +++ b/api.js @@ -83,15 +83,15 @@ BotanJS.prototype.compile = function( type ) return; } - var j = conf.debug ? [ "Components.Console" ] : []; - for( var i in this.sv ) if( this.sv[ i ] ) j.push( i ); - for( var i in this.kv ) if( this.kv[ i ] ) j.push( i ); + var resList = conf.debug ? [ "Components.Console" ] : []; + for( var i in this.sv ) if( this.sv[ i ] ) resList.push( i ); + for( var i in this.kv ) if( this.kv[ i ] ) resList.push( i ); var rainet = conf.rinet || conf.serviceUri; if( conf.type && "or".indexOf( conf.type ) != -1 ) { - this[ type ] = rainet + conf.type + type + "/" + j.join( "/" ); + this[ type ] = rainet + conf.type + type + "/" + resList.join( "/" ); this.emit( "complete" ); return; } @@ -102,7 +102,7 @@ BotanJS.prototype.compile = function( type ) }; - var q = j.join( "," ); + var q = resList.sort().join( "," ); var lookupKey = hash.md5( q ); var Session = cl.load( "botansx.modular.session" );