dasmoth / dalliance

Interactive web-based genome browser.
http://www.biodalliance.org/
BSD 2-Clause "Simplified" License
226 stars 68 forks source link

Only call init listeners after the location has been set. #161

Closed Traksewt closed 9 years ago

Traksewt commented 9 years ago

Init listener needs to only be called when the sequence source is loaded and setLocation has been called. Otherwise, while dalliance is initialising and retrieving the sequence source, the init listeners may have already triggered. The application may then try to render which uses known space, however, then the original setLocation occurs (that was waiting for the Sequence Source), which calls cancel on the existing known space operation, as it tries to render again (as setLocation renders currently).