Ticket #3477: 3477_2.patch

File 3477_2.patch, 885 bytes (added by Garry Yao, 15 years ago)
  • _source/core/dom/walker.js

     
    263263                         */
    264264                        checkForward : function()
    265265                        {
    266                                 return iterate.call( this, false, true ) !== false;
     266                                var result;
     267                                while( ( result = iterate.call( this, false, true ) ) !== null )
     268                                        if ( result === false )
     269                                                return false;
     270                                return true;
    267271                        },
    268272
    269273                        /**
     
    273277                         */
    274278                        checkBackward : function()
    275279                        {
    276                                 return iterate.call( this, true, true ) !== false;
     280                                var result;
     281                                while( ( result = iterate.call( this, true, true ) ) !== null )
     282                                        if ( result === false )
     283                                                return false;
     284                                return true;
    277285                        }
    278286
    279287// The following features have been originally included in the implementation,
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy