function processChunk()
        {
            var view = searchableViews[i];

            if (++i >= searchableViews.length) {
                if (panel._currentSearchChunkIntervalIdentifier === chunkIntervalIdentifier)
                    delete panel._currentSearchChunkIntervalIdentifier;
                clearInterval(chunkIntervalIdentifier);
            }

            if (!view)
                return;

            if (view.element.parentNode !== parentElement && view.element.parentNode && parentElement)
                view.detach();

            view.currentQuery = query;
            view.performSearch(query, boundFinishedCallback);
        }
function processChunk()
        {
            var view = searchableViews[i];

            if (++i >= searchableViews.length) {
                if (panel._currentSearchChunkIntervalIdentifier === chunkIntervalIdentifier)
                    delete panel._currentSearchChunkIntervalIdentifier;
                clearInterval(chunkIntervalIdentifier);
            }

            if (!view)
                return;

            if (view.element.parentNode !== parentElement && view.element.parentNode && parentElement)
                view.detach();

            view.currentQuery = query;
            view.performSearch(query, boundFinishedCallback);
        }
function processChunk ( ) { var view = searchableViews [ i ] ; if ( ++ i >= searchableViews . length ) { if ( panel . _currentSearchChunkIntervalIdentifier === chunkIntervalIdentifier ) delete panel . _currentSearchChunkIntervalIdentifier ; clearInterval ( chunkIntervalIdentifier ) ; } if ( ! view ) return ; if ( view . element . parentNode !== parentElement && view . element . parentNode && parentElement ) view . detach ( ) ; view . currentQuery = query ; view . performSearch ( query , boundFinishedCallback ) ; }
Split up the work into chunks so we don't block the UI thread while processing.
Split up the work into chunks so we don t block the UI thread while processing .
processChunk - Process a chunk of searchable views