Skip to content

Commit

Permalink
tweak timeout handling in HTMLFeatures
Browse files Browse the repository at this point in the history
Conflicts:

	release-notes.txt
  • Loading branch information
rbuels committed Mar 8, 2013
1 parent ff6f6b1 commit c2e0806
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions release-notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
* Fixed some missing dojo/dijit nls directories in the non-dev
release zipfile.

* Fixed a bug with handling of timeout events in HTMLFeatures tracks.
Thanks to Matt Henderson of KBase for pointing this out.

1.8.1 2013-02-12 12:56:24 EST5EDT

* Added support for `cigarAttribute` and `mdAttributes` configuration
Expand Down
7 changes: 5 additions & 2 deletions src/JBrowse/View/Track/HTMLFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,14 @@ var HTMLFeatures = declare( [ BlockBased, YScaleMixin, ExportMixin, FeatureDetai
var timedOut = false;
var timeOutError = { toString: function() { return 'Timed out trying to display '+curTrack.name+' block '+blockIndex; } };
if( this.config.blockDisplayTimeout )
window.setTimeout( function() { timedOut = true; }, this.config.blockDisplayTimeout );
window.setTimeout( function() {
timedOut = true;
curTrack.fillBlockTimeout( blockIndex, block );
}, this.config.blockDisplayTimeout );

var featCallback = dojo.hitch(this,function( feature ) {
if( timedOut )
throw timeOutError;
return;

var uniqueId = feature.id();
if( ! this._featureIsRendered( uniqueId ) ) {
Expand Down

0 comments on commit c2e0806

Please sign in to comment.