Skip to content

Instantly share code, notes, and snippets.

@gjtorikian
Created September 18, 2012 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjtorikian/3745021 to your computer and use it in GitHub Desktop.
Save gjtorikian/3745021 to your computer and use it in GitHub Desktop.
apf code
//#ifdef __DEBUG
if (apf.started)
apf.console.info("including js file: " + sourceFile);
//#endif
var sSrc = doBase ? apf.getAbsolutePath(apf.basePath || "", sourceFile) : sourceFile;
var head = document.getElementsByTagName("head")[0],//$("head")[0]
elScript = document.createElement("script");
//elScript.defer = true;
if (type)
elScript.setAttribute("_apf_type", type);
if (text) {
if (apf.isIE)
window.execScript(text);
else
elScript.text = text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment