r113814 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113813‎ | r113814 | r113815 >
Date:15:42, 14 March 2012
Author:jdlrobson
Status:ok
Tags:
Comment:
remove test for preventDefault

we are using addEventListener or jQuery bind
so we don't need to worry about this
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/beta_opensearch.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/beta_opensearch.js
@@ -230,9 +230,7 @@
231231 function clearSearchBox( event ) {
232232 search.value = '';
233233 clearSearch.style.display = 'none';
234 - if ( event ) {
235 - event.preventDefault();
236 - }
 234+ event.preventDefault();
237235 }
238236
239237 function onFocusHandler() {

Status & tagging log