JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0.2
[ckeditor.git] / _source / core / htmlparser / filter.js
index 3d46487..6001e68 100644 (file)
@@ -127,6 +127,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
        function addItemsToList( list, items, priority )\r
        {\r
+               if( typeof items == 'function' )\r
+                       items = [ items ];\r
+\r
                var i, j,\r
                        listLength = list.length,\r
                        itemsLength = items && items.length;\r