X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Ftemplates%2Fplugin.js;h=3cf98556c4d86a13b9b6188e18b84345851d4ea2;hp=64d70e0a68d9ce92ffa797dc4f8312b71d0b541c;hb=039a051ccf3901311661022a30afd60fc38130c9;hpb=c9fdde67e6384bd5a66adc2b3bba5c4ce9db56c7 diff --git a/_source/plugins/templates/plugin.js b/_source/plugins/templates/plugin.js index 64d70e0..3cf9855 100644 --- a/_source/plugins/templates/plugin.js +++ b/_source/plugins/templates/plugin.js @@ -42,7 +42,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var toLoad = []; // Look for pending template files to get loaded. - for ( var i = 0 ; i < templateFiles.length ; i++ ) + for ( var i = 0, count = templateFiles.length ; i < count ; i++ ) { if ( !loadedTemplatesFiles[ templateFiles[ i ] ] ) { @@ -51,7 +51,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license } } - if ( toLoad.length > 0 ) + if ( toLoad.length ) CKEDITOR.scriptLoader.load( toLoad, callback ); else setTimeout( callback, 0 ); @@ -68,7 +68,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license * @example * config.templates = 'my_templates'; */ -CKEDITOR.config.templates = 'default'; /** * The list of templates definition files to load.