Skip to content

Commit 03ef5e5

Browse files
committed
Removed redundant click listener
1 parent a31f8d0 commit 03ef5e5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

static/search.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -463,21 +463,6 @@ var Search = Control.extend({
463463
self.clear();
464464
});
465465
}
466-
467-
// if we click the list item, navigate
468-
// if the target element is an anchor tag, simply clear
469-
if(this.$resultsContainer && this.$resultsContainer.length){
470-
this.$resultsContainer.on("click.search-component", ".search-results > ul > li", function(ev){
471-
var $target = $(ev.target),
472-
$a;
473-
474-
if(!$target.is("a")){
475-
$a = $target.closest("li").find("a");
476-
self.navigate($a.attr("href"));
477-
return;
478-
}
479-
});
480-
}
481466
},
482467
unbindResultsEvents: function(){
483468
//hide the search on cancel click

0 commit comments

Comments
 (0)