/*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, 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
* @example\r
* config.templates = 'my_templates';\r
*/\r
-CKEDITOR.config.templates = 'default';\r
\r
/**\r
* The list of templates definition files to load.\r
CKEDITOR.config.templates_files =\r
[\r
CKEDITOR.getUrl(\r
+ '_source/' + // @Packager.RemoveLine\r
'plugins/templates/templates/default.js' )\r
];\r
\r