Ticket #3354: 3354.patch

File 3354.patch, 761 bytes (added by Garry Yao, 15 years ago)
  • _source/plugins/list/plugin.js

     
    217217                        listArray[listIndex].parent = fakeParent;
    218218                }
    219219                var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode );
    220                 var child;
    221                 for ( i = 0, length = newList.listNode.getChildCount() ;
    222                                 i < length && ( child = newList.listNode.getChild( i ) ) ; i++ )
     220                var child, length = newList.listNode.getChildCount();
     221                for ( i = 0 ; i < length && ( child = newList.listNode.getChild( i ) ) ; i++ )
    223222                {
    224223                        if ( child.getName() == this.type )
    225224                                listsCreated.push( child );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy