Now closing the navigator when the viewer closes

At the very least this was causing the navigator to continue to request
and process frames even after its viewer had been closed.
This commit is contained in:
Ian Gilman 2013-06-17 11:31:41 -07:00
parent 4224960252
commit c6a38dd802

View File

@ -470,7 +470,11 @@ $.extend( $.Viewer.prototype, $.EventHandler.prototype, $.ControlDock.prototype,
THIS[ this.hash ].updateRequestId = null;
}
if( this.drawer ){
if ( this.navigator ) {
this.navigator.close();
}
if ( this.drawer ) {
this.drawer.clearOverlays();
}