Avoid calling forEach on searchbox NodeList for older browsers
Bug: T293402 Change-Id: Ic2d10ca9c664c284fc9b5433b5ff1cc32d98c960
This commit is contained in:
parent
ea58308a48
commit
a1b523a9d5
|
@ -160,7 +160,7 @@ function initSearchLoader( document ) {
|
|||
* before the search module loads.
|
||||
**/
|
||||
if ( shouldUseCoreSearch || !window.fetch ) {
|
||||
searchBoxes.forEach( function ( searchBox ) {
|
||||
Array.prototype.forEach.call( searchBoxes, function ( searchBox ) {
|
||||
var input = searchBox.querySelector( 'input[name="search"]' );
|
||||
if ( input ) {
|
||||
loadSearchModule(
|
||||
|
@ -173,7 +173,8 @@ function initSearchLoader( document ) {
|
|||
} );
|
||||
return;
|
||||
}
|
||||
searchBoxes.forEach( function ( searchBox ) {
|
||||
|
||||
Array.prototype.forEach.call( searchBoxes, function ( searchBox ) {
|
||||
var searchInner = searchBox.querySelector( 'form > div' ),
|
||||
searchInput = searchBox.querySelector( 'input[name="search"]' ),
|
||||
clearLoadingIndicators = function () {
|
||||
|
|
Loading…
Reference in New Issue