Skip to content

Commit

Permalink
fix loading feedback from wiggle tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Feb 22, 2013
1 parent 6039b6a commit 1775cc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/JBrowse/View/Track/WiggleBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,15 @@ return declare( [CanvasTrack,ExportMixin], {
// hook updateGraphs onto the end of the block feature fetch
var oldFinish = args.finishCallback || function() {};
args.finishCallback = function() {
thisB.updateGraphs();
oldFinish();
thisB.updateGraphs( oldFinish );
};

// get the features for this block, and then set in motion the
// updating of the graphs
this._getBlockFeatures( args );
},

updateGraphs: function() {
updateGraphs: function( callback ) {
var thisB = this;

// update the global scaling
Expand All @@ -220,6 +219,7 @@ return declare( [CanvasTrack,ExportMixin], {
blockIndex: blockIndex
});
});
callback();
},
function(e) {
thisB.error = e;
Expand Down

0 comments on commit 1775cc6

Please sign in to comment.