Skip to content

Commit

Permalink
fix some more pub/sub bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Jul 2, 2012
1 parent 5e3c29a commit 06854bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JBrowse/Browser.js
Expand Up @@ -253,11 +253,11 @@ Browser.prototype.initView = function() {
*/
Browser.prototype._initEventRouting = function() {
this.subscribe('/jbrowse/v1/v/tracks/hide', dojo.hitch( this, function( trackConfigs ) {
this.publish( '/jbrowse/v1/c/tracks/hide', arguments );
this.publish( '/jbrowse/v1/c/tracks/hide', trackConfigs );
}));
this.subscribe('/jbrowse/v1/v/tracks/show', dojo.hitch( this, function( trackConfigs ) {
this.addRecentlyUsedTracks( dojo.map(trackConfigs, function(c){ return c.label;}) );
this.publish( '/jbrowse/v1/c/tracks/show', arguments );
this.publish( '/jbrowse/v1/c/tracks/show', trackConfigs );
}));
};

Expand Down

0 comments on commit 06854bc

Please sign in to comment.