* Appends a script element at the end of the with the content of code, * after transforming it. * * @param {string} code The original source code * @param {string?} url Where the code came from. null if inline * @param {object?} options Options to pass to jstransform * @internal
(code, url, options)
| 179 | * @internal |
| 180 | */ |
| 181 | function run(code, url, options) { |
| 182 | var scriptEl = document.createElement('script'); |
| 183 | scriptEl.text = transformCode(code, url, options); |
| 184 | headEl.appendChild(scriptEl); |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * Load script from the provided url and pass the content to the callback. |
no test coverage detected