Index: trunk/extensions/MobileFrontend/javascripts/beta_opensearch.js |
— | — | @@ -230,9 +230,7 @@ |
231 | 231 | function clearSearchBox( event ) { |
232 | 232 | search.value = ''; |
233 | 233 | clearSearch.style.display = 'none'; |
234 | | - if ( event ) { |
235 | | - event.preventDefault(); |
236 | | - } |
| 234 | + event.preventDefault(); |
237 | 235 | } |
238 | 236 | |
239 | 237 | function onFocusHandler() { |