X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fscriptloader.js;h=c2df992d4ca8e57f8d7ecdcdfb8ae9e24bacf5c4;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=0ad7d86994cff8f1a4c71b6977d39e65fc7b73b1;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/scriptloader.js b/_source/core/scriptloader.js index 0ad7d86..c2df992 100644 --- a/_source/core/scriptloader.js +++ b/_source/core/scriptloader.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -15,8 +15,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.scriptLoader = (function() { - var uniqueScripts = {}; - var waitingList = {}; + var uniqueScripts = {}, + waitingList = {}; return /** @lends CKEDITOR.scriptLoader */ { /** @@ -33,8 +33,8 @@ CKEDITOR.scriptLoader = (function() * ones. * @param {Object} [scope] The scope ("this" reference) to be used for * the callback call. Default to {@link CKEDITOR}. - * @param {Boolean} [noCheck] Indicates that the script must be loaded - * anyway, not checking if it has already loaded. + * @param {Boolean} [showBusy] Changes the cursor of the document while ++ * the script is loaded. * @example * CKEDITOR.scriptLoader.load( '/myscript.js' ); * @example @@ -51,7 +51,7 @@ CKEDITOR.scriptLoader = (function() * alert( 'Number of failures: ' + failed.length ); * }); */ - load : function( scriptUrl, callback, scope, noCheck, showBusy ) + load : function( scriptUrl, callback, scope, showBusy ) { var isString = ( typeof scriptUrl == 'string' ); @@ -109,7 +109,7 @@ CKEDITOR.scriptLoader = (function() var loadScript = function( url ) { - if ( noCheck !== true && uniqueScripts[ url ] ) + if ( uniqueScripts[ url ] ) { checkLoaded( url, true ); return; @@ -175,24 +175,6 @@ CKEDITOR.scriptLoader = (function() { loadScript( scriptUrl[ i ] ); } - }, - - /** - * Executes a JavaScript code into the current document. - * @param {String} code The code to be executed. - * @example - * CKEDITOR.scriptLoader.loadCode( 'var x = 10;' ); - * alert( x ); // "10" - */ - loadCode : function( code ) - { - // Create the