Skip to content

Commit

Permalink
fixed mistake in naming when pushing config vars into has cache; refs…
Browse files Browse the repository at this point in the history
… #12672; !strict

git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@25487 560b804f-0ae3-0310-86f3-f6aa0a117693
  • Loading branch information
rcgill committed Jun 10, 2011
1 parent 32181dc commit 10fe4d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions _base/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ define(["../has", "./config", "require", "module"], function(has, config, requir
dojo.config = {};
for(p in config){
dojo.config[p] = config[p];
has.add(p, config[p], 0, 1);
has.add("config-"+p, config[p], 0, 1);
}
for(p in config.has){
has.add(p, config.has[p], 0, 1);
}
if(has("dojo-loader") && has("dojo-config-api")){
require.on("config", function(config){
for(p in config){
has.add(p, config[p]);
has.add("config-"+p, config[p]);
}
});
}
Expand Down Expand Up @@ -138,7 +138,8 @@ define(["../has", "./config", "require", "module"], function(has, config, requir
"groupEnd", "info", "profile", "profileEnd", "time", "timeEnd",
"trace", "warn", "log"
];
var i = 0, tn;
var tn;
i = 0;
while((tn = cn[i++])){
if(!console[tn]){
(function(){
Expand Down

0 comments on commit 10fe4d3

Please sign in to comment.