JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.2
[ckeditor.git] / _source / plugins / templates / plugin.js
index 64d70e0..3cf9855 100644 (file)
@@ -42,7 +42,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                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
@@ -51,7 +51,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        }\r
                }\r
 \r
-               if ( toLoad.length > 0 )\r
+               if ( toLoad.length )\r
                        CKEDITOR.scriptLoader.load( toLoad, callback );\r
                else\r
                        setTimeout( callback, 0 );\r
@@ -68,7 +68,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
  * @example\r
  * config.templates = 'my_templates';\r
  */\r
-CKEDITOR.config.templates = 'default';\r
 \r
 /**\r
  * The list of templates definition files to load.\r