Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Sep 1, 2015
1 parent 0b09e2d commit 486d1a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
(requiring[u].shift())(u);
};
var getSrc = function(u){
return u?($js.path&&u.indexOf('://')<0&&u.indexOf('/')!==0&&(!$js.pathDetection||u.indexOf($js.path)!=0)?($js.path+u):u)+($js.pathSuffix&&u.indexOf('://')<0&&(!$js.pathDetection||u.substr(u.length-$js.pathSuffix.length)!=$js.pathSuffix)?$js.pathSuffix:''):u;
return u&&u.indexOf('/')!==0?($js.path&&u.indexOf('://')<0&&(!$js.pathDetection||u.indexOf($js.path)!=0)?($js.path+u):u)+($js.pathSuffix&&u.indexOf('://')<0&&(!$js.pathDetection||u.substr(u.length-$js.pathSuffix.length)!=$js.pathSuffix)?$js.pathSuffix:''):u;
};
var createScript = function(u){
var s = d.createElement('script');
Expand Down Expand Up @@ -426,7 +426,7 @@
};
var apt = function(u,c,m){
m = m?0:1;
u = getSrc(u);
//u = getSrc(u);
if(!scripts[m][u])
scripts[m][u] = [];
if(typeof(c)=='function')
Expand Down
Loading

0 comments on commit 486d1a0

Please sign in to comment.