Skip to content

Commit

Permalink
refer to lang rather than dojo in dojo/i18n.js. refs #13484 !strict
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@26131 560b804f-0ae3-0310-86f3-f6aa0a117693
  • Loading branch information
neonstalwart committed Aug 9, 2011
1 parent 1dc2eef commit 3416c7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ define(["./_base/kernel", "require", "./has", "./_base/array", "./_base/lang", "
// get the root bundle which instructs which other bundles are required to contruct the localized bundle
require([bundlePathAndName], function(root){
var
current= cache[bundlePathAndName + "/"]= dojo.clone(root.root),
current= cache[bundlePathAndName + "/"]= lang.clone(root.root),
availableLocales= getAvailableLocales(!root._v1x && root, locale, bundlePath, bundleName);
require(availableLocales, function(){
for (var i= 1; i<availableLocales.length; i++){
cache[availableLocales[i]]= current= lang.mixin(dojo.clone(current), arguments[i]);
cache[availableLocales[i]]= current= lang.mixin(lang.clone(current), arguments[i]);
}
// target may not have been resolve (e.g., maybe only "fr" exists when "fr-ca" was requested)
var target= bundlePathAndName + "/" + locale;
cache[target]= current;
load && load(dojo.delegate(current));
load && load(lang.delegate(current));
});
});
},
Expand Down

0 comments on commit 3416c7a

Please sign in to comment.