Ticket #3476: 3476.patch

File 3476.patch, 895 bytes (added by Garry Yao, 15 years ago)
  • _source/core/dom/domwalker.js

     
    3131                                if ( !current )
    3232                                        return null;
    3333
    34                                 if ( current.getChildCount() > 0 )
     34                                if ( current.getChildCount && current.getChildCount() > 0 )
    3535                                {
    3636                                        next = current.getChild( 0 );
    3737                                        fireDomWalkerEvent.call( this, 'down', current, next );
     
    9090                                {
    9191                                        var lastChild = current.getPrevious();
    9292                                        fireDomWalkerEvent.call( this, 'sibling', current, lastChild );
    93                                         while ( lastChild.getChildCount() > 0 )
     93                                        while ( lastChild.getChildCount && lastChild.getChildCount() > 0 )
    9494                                        {
    9595                                                next = lastChild.getChild( lastChild.getChildCount() - 1 );
    9696                                                fireDomWalkerEvent.call( this, 'down', lastChild, next );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy