Created
September 18, 2012 18:50
-
-
Save gjtorikian/3745021 to your computer and use it in GitHub Desktop.
apf code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#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