Skip to content

Commit

Permalink
make name-searching tolerate strings in the names json, sigh.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Apr 10, 2012
1 parent f780fc3 commit 11e8460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ Browser.prototype.searchNames = function( loc ) {
}
//else just pick a match
if (!goingTo) goingTo = nameMatches[0];
var startbp = goingTo[3];
var endbp = goingTo[4];
var startbp = parseInt(goingTo[3]);
var endbp = parseInt(goingTo[4]);
var flank = Math.round((endbp - startbp) * .2);
//go to location, with some flanking region
brwsr.navigateTo(goingTo[2]
Expand Down

0 comments on commit 11e8460

Please sign in to comment.