/*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
var toLoad = [];\r
\r
// Look for pending template files to get loaded.\r
- for ( var i = 0 ; i < templateFiles.length ; i++ )\r
+ for ( var i = 0, count = templateFiles.length ; i < count ; i++ )\r
{\r
if ( !loadedTemplatesFiles[ templateFiles[ i ] ] )\r
{\r
}\r
}\r
\r
- if ( toLoad.length > 0 )\r
+ if ( toLoad.length )\r
CKEDITOR.scriptLoader.load( toLoad, callback );\r
else\r
setTimeout( callback, 0 );\r
* comma. It must match definitions loaded with the templates_files setting.\r
* @type String\r
* @default 'default'\r
+ * @name CKEDITOR.config.templates\r
* @example\r
* config.templates = 'my_templates';\r
*/\r
-CKEDITOR.config.templates = 'default';\r
\r
/**\r
* The list of templates definition files to load.\r