X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2Fscriptloader.js;h=c2df992d4ca8e57f8d7ecdcdfb8ae9e24bacf5c4;hp=191f56daa368249225af165cb626e75f0776ed3e;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hpb=9afde8772159bd3436f1f5b7862960307710ae5a diff --git a/_source/core/scriptloader.js b/_source/core/scriptloader.js index 191f56d..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 */ @@ -33,8 +33,6 @@ 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 @@ -53,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' ); @@ -111,7 +109,7 @@ CKEDITOR.scriptLoader = (function() var loadScript = function( url ) { - if ( noCheck !== true && uniqueScripts[ url ] ) + if ( uniqueScripts[ url ] ) { checkLoaded( url, true ); return; @@ -177,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