Skip to content

Commit

Permalink
minified versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tipiirai committed Jan 25, 2011
1 parent 6c56c56 commit cf2e897
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions dist/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,10 @@

var script = scripts[key];

if (script && script.state == LOADED || key == 'ALL' && allLoaded()) {
fn();
if (script && script.state == LOADED || key == 'ALL' && allLoaded()) {
fn();
return api;
}
}

var arr = handlers[key];
if (!arr) { arr = handlers[key] = [fn]; }
Expand Down Expand Up @@ -442,12 +442,14 @@
}

function allLoaded(els) {
els = els || scripts;
els = els || scripts;
var loaded = false;

for (var name in els) {
if (els[name].state != LOADED) { return false; }
if (els[name].state != LOADED) { return false; }
loaded = true;
}
return true;
return loaded;
}


Expand Down
2 changes: 1 addition & 1 deletion dist/head.load.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/head.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf2e897

Please sign in to comment.