Skip to content

Commit

Permalink
variable declarations moved to the top of the funcion scope
Browse files Browse the repository at this point in the history
  • Loading branch information
adros committed Oct 28, 2016
1 parent 881eff4 commit 39e0300
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doh/_parseURLargs.js
Expand Up @@ -190,10 +190,11 @@

function callback(domReady, doh){
domReady(function(){
var amdTests = [], module;
doh._fixHeight();
doh.breakOnError= breakOnError;
for (var amdTests = [], i = 0, l = test.length; i < l; i++) {
var module = test[i];
for (var i = 0, l = test.length; i < l; i++) {
module = test[i];
if(/\.html$/.test(module)){
doh.register(module, require.toUrl(module), 999999);
}else{
Expand Down

0 comments on commit 39e0300

Please sign in to comment.