First off, I'm trying to implement a feature where scripts are dynamically included into the page as needed. The code looks something like this http://pastie.org/634998 and here is the actual implementation I'm using it in: http://lighterjs.code.pradador.com/browser/trunk/Lighter.js
So my question is, is there any way to tell the loadScript function to callback the function that called it in the first place? As it stands right now, I have to pass in the function I want to call as a callback for the load event. I remember the arguments.caller and callee references but I believe these were deprecated. Is there any cross- browser way to achieve this?
