Index: trunk/phase3/skins/common/mwsuggest.js |
— | — | @@ -30,8 +30,8 @@ |
31 | 31 | // delay between keypress and suggestion (in ms) |
32 | 32 | window.os_search_timeout = 250; |
33 | 33 | // these pairs of inputs/forms will be autoloaded at startup |
34 | | -window.os_autoload_inputs = new Array('searchInput', 'searchInput2', 'powerSearchText', 'searchText'); |
35 | | -window.os_autoload_forms = new Array('searchform', 'searchform2', 'powersearch', 'search' ); |
| 34 | +window.os_autoload_inputs = ['searchInput', 'searchInput2', 'powerSearchText', 'searchText']; |
| 35 | +window.os_autoload_forms = ['searchform', 'searchform2', 'powersearch', 'search']; |
36 | 36 | // if we stopped the service |
37 | 37 | window.os_is_stopped = false; |
38 | 38 | // max lines to show in suggest table |
— | — | @@ -423,7 +423,7 @@ |
424 | 424 | } |
425 | 425 | s.setAttribute( 'list', r.container ); |
426 | 426 | |
427 | | - r.results = new Array(); |
| 427 | + r.results = []; |
428 | 428 | r.resultCount = results.length; |
429 | 429 | r.visible = true; |
430 | 430 | for ( i = 0; i < results.length; i++ ) { |
— | — | @@ -643,7 +643,7 @@ |
644 | 644 | var c = document.getElementById( r.container ); |
645 | 645 | var width = c.offsetWidth - os_operaWidthFix( c.offsetWidth ); |
646 | 646 | var html = '<table class="os-suggest-results" id="' + r.resultTable + '" style="width: ' + width + 'px;">'; |
647 | | - r.results = new Array(); |
| 647 | + r.results = []; |
648 | 648 | r.resultCount = results.length; |
649 | 649 | for( i = 0; i < results.length; i++ ) { |
650 | 650 | var title = os_decodeValue( results[i] ); |