Fixed viewer only displaying every nth image after reopening

Added code to detach emit calls when the interface is closed.

Bug: T122785
Change-Id: Ifd97aebe7aa01a152817100f301a80a9b6ac83a3
This commit is contained in:
mhutti1 2016-01-07 21:01:49 +01:00 committed by Mhutti1
parent ae0a1a8cc8
commit f937b1f20d

View file

@ -276,6 +276,11 @@
this.clearEvents(); this.clearEvents();
this.buttons.disconnect( this, {
'next': [ 'emit', 'next' ],
'prev': [ 'emit', 'prev' ]
} );
// We trigger this event on the document because unattach() can run // We trigger this event on the document because unattach() can run
// when the interface is unattached // when the interface is unattached
$( document ).trigger( $.Event( 'mmv-close' ) ) $( document ).trigger( $.Event( 'mmv-close' ) )