-
Damyon Wiese authored
Instead of injecting the HTML + JS directly - return a promise that is resolve with the HTML and JS. This gives the caller control over how and when to inject the nodes in the DOM. Also modify templates.replaceNode functions to cleanup YUI events mess. Also pass the context to the callback so it can be verified. Also pass the arguments to the callback as a named array - not a flat argument list. Also - only load external scripts if they are not already loaded.
1fca8a7b