example/public/ueditor/third-party/highcharts/adapters/mootools-adapter.src.js
function (scriptLocation, callback) {
		// We cannot assume that Assets class from mootools-more is available so instead insert a script tag to download script.
		var head = doc.getElementsByTagName('head')[0];
		var script = doc.createElement('script');

		script.type = 'text/javascript';
		script.src = scriptLocation;
		script.onload = callback;

		head.appendChild(script);
	}
function (scriptLocation, callback) {
		// We cannot assume that Assets class from mootools-more is available so instead insert a script tag to download script.
		var head = doc.getElementsByTagName('head')[0];
		var script = doc.createElement('script');

		script.type = 'text/javascript';
		script.src = scriptLocation;
		script.onload = callback;

		head.appendChild(script);
	}
function ( scriptLocation , callback ) { // We cannot assume that Assets class from mootools-more is available so instead insert a script tag to download script. var head = doc . getElementsByTagName ( 'head' ) [ 0 ] ; var script = doc . createElement ( 'script' ) ; script . type = 'text/javascript' ; script . src = scriptLocation ; script . onload = callback ; head . appendChild ( script ) ; }
Downloads a script and executes a callback when done.
@param {String} scriptLocation
@param {Function} callback
Downloads a script and executes a callback when done .