Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
Merge branch 'patch-1' of https://github.com/brenopolanski/loadJS int…
Browse files Browse the repository at this point in the history
…o brenopolanski-patch-1
  • Loading branch information
jefflembeck committed Oct 17, 2014
2 parents 45e41fb + 497e915 commit 1f226d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loadJS.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function loadJS( src, cb ){
script.src = src;
script.async = true;
ref.parentNode.insertBefore( script, ref );
if (cb) {
if (cb && typeof(callback) === 'function') {
script.onload = cb;
}
return script;
Expand Down

0 comments on commit 1f226d4

Please sign in to comment.