app/assets/javascripts/views/shared/GeoListView.js
Function searchCountries
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
searchCountries: function(e) {
// TODO: move this to the presenter
var searchText = this.$searchBox.val();
var val = $.trim(searchText)
.replace(/ +/g, ' ')