X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2Fhtmlparser%2Ffilter.js;h=6001e681a538f243703c17b2bdc83e94ae588a1a;hp=3d46487c52536df9c40b0a993d7a0d94a2e2551a;hb=7cd80714081a8ffdf4a1a8d2c72f120ed5ef3d6d;hpb=8761695d9b70afe75905deaac88f78c1f8aeb32d diff --git a/_source/core/htmlparser/filter.js b/_source/core/htmlparser/filter.js index 3d46487..6001e68 100644 --- a/_source/core/htmlparser/filter.js +++ b/_source/core/htmlparser/filter.js @@ -127,6 +127,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license function addItemsToList( list, items, priority ) { + if( typeof items == 'function' ) + items = [ items ]; + var i, j, listLength = list.length, itemsLength = items && items.length;