Skip to content

Instantly share code, notes, and snippets.

@tlrobinson
Created December 19, 2008 17:24
Show Gist options
  • Save tlrobinson/38051 to your computer and use it in GitHub Desktop.
Save tlrobinson/38051 to your computer and use it in GitHub Desktop.
function objj_process_scripts()
{
var scripts = document.getElementsByTagName("script");
for (var i = 0; i < scripts.length; i++)
{
if (scripts[i].type == "text/objective-j" && !scripts[i].processed)
{
scripts[i].processed = true;
objj_eval(scripts[i].innerText, objj_process_scripts);
break;
}
}
}
window.addEventListener("load", objj_process_scripts, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment