Skip to content

Commit

Permalink
the GenomeView does not actually need to be passed a browserRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Nov 16, 2012
1 parent ec4191e commit 8518ab6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/JBrowse/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ Browser.prototype.initView = function() {

// hook up GenomeView
this.view = this.viewElem.view =
new GenomeView(this, this.viewElem, 250, this.refSeq, 1/200,
this.config.browserRoot);
new GenomeView(this, this.viewElem, 250, this.refSeq, 1/200 );

dojo.connect( this.view, "onFineMove", this, "onFineMove" );
dojo.connect( this.view, "onCoarseMove", this, "onCoarseMove" );

Expand Down
5 changes: 2 additions & 3 deletions src/JBrowse/GenomeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var locationThumbMover = declare( dndMove.constrainedMoveable, {
* @class
* @constructor
*/
var GenomeView = function( browser, elem, stripeWidth, refseq, zoomLevel, browserRoot) {
var GenomeView = function( browser, elem, stripeWidth, refseq, zoomLevel ) {

// keep a reference to the main browser object
this.browser = browser;
Expand All @@ -60,8 +60,7 @@ var GenomeView = function( browser, elem, stripeWidth, refseq, zoomLevel, browse
this.ref = refseq;
//current scale, in pixels per bp
this.pxPerBp = zoomLevel;
//path prefix for static assets (e.g., cursors)
this.browserRoot = browserRoot ? browserRoot : "";

//width, in pixels, of the vertical stripes
this.stripeWidth = stripeWidth;
//the page element that the GenomeView lives in
Expand Down

0 comments on commit 8518ab6

Please sign in to comment.