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

Commit

Permalink
Merge branch 'brenopolanski-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflembeck committed Oct 17, 2014
2 parents 45e41fb + 2df358e commit 8dda05e
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(cb) === 'function') {
script.onload = cb;
}
return script;
Expand Down

0 comments on commit 8dda05e

Please sign in to comment.