2023-05-20 08:30:52 +00:00
|
|
|
const { LightboxInterface } = require( 'mmv' );
|
|
|
|
const { enterFullscreenMock, exitFullscreenMock, getMultimediaViewer } = require( './mmv.testhelpers.js' );
|
|
|
|
|
2018-11-12 16:33:24 +00:00
|
|
|
( function () {
|
2014-03-29 01:38:22 +00:00
|
|
|
var oldScrollTo;
|
|
|
|
|
|
|
|
function stubScrollTo() {
|
|
|
|
oldScrollTo = $.scrollTo;
|
2019-02-05 23:59:52 +00:00
|
|
|
$.scrollTo = function () { return { scrollTop: function () {}, on: function () {}, off: function () {} }; };
|
2014-03-29 01:38:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function restoreScrollTo() {
|
|
|
|
$.scrollTo = oldScrollTo;
|
|
|
|
}
|
|
|
|
|
2015-06-24 18:54:22 +00:00
|
|
|
QUnit.module( 'mmv.lightboxInterface', QUnit.newMwEnvironment( {
|
2022-05-13 20:41:15 +00:00
|
|
|
beforeEach: function () {
|
2015-06-24 18:54:22 +00:00
|
|
|
// animation would keep running, conflict with other tests
|
|
|
|
this.sandbox.stub( $.fn, 'animate' ).returnsThis();
|
|
|
|
}
|
|
|
|
} ) );
|
|
|
|
|
2021-12-10 00:43:28 +00:00
|
|
|
QUnit.test( 'Sense test, object creation and ui construction', function ( assert ) {
|
2023-05-20 08:30:52 +00:00
|
|
|
var lightbox = new LightboxInterface();
|
2013-12-11 02:08:07 +00:00
|
|
|
|
2014-03-29 01:38:22 +00:00
|
|
|
stubScrollTo();
|
|
|
|
|
2013-12-11 02:08:07 +00:00
|
|
|
function checkIfUIAreasAttachedToDocument( inDocument ) {
|
2014-03-27 06:05:47 +00:00
|
|
|
var msg = ( inDocument === 1 ? ' ' : ' not ' ) + 'attached.';
|
|
|
|
assert.strictEqual( $( '.mw-mmv-wrapper' ).length, inDocument, 'Wrapper area' + msg );
|
|
|
|
assert.strictEqual( $( '.mw-mmv-main' ).length, inDocument, 'Main area' + msg );
|
|
|
|
assert.strictEqual( $( '.mw-mmv-title' ).length, inDocument, 'Title area' + msg );
|
|
|
|
assert.strictEqual( $( '.mw-mmv-credit' ).length, inDocument, 'Author/source area' + msg );
|
|
|
|
assert.strictEqual( $( '.mw-mmv-image-desc' ).length, inDocument, 'Description area' + msg );
|
|
|
|
assert.strictEqual( $( '.mw-mmv-image-links' ).length, inDocument, 'Links area' + msg );
|
2013-12-11 02:08:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UI areas not attached to the document yet.
|
2015-01-23 12:48:27 +00:00
|
|
|
checkIfUIAreasAttachedToDocument( 0 );
|
2013-12-11 02:08:07 +00:00
|
|
|
|
|
|
|
// Attach lightbox to testing fixture to avoid interference with other tests.
|
|
|
|
lightbox.attach( '#qunit-fixture' );
|
|
|
|
|
|
|
|
// UI areas should now be attached to the document.
|
2015-01-23 12:48:27 +00:00
|
|
|
checkIfUIAreasAttachedToDocument( 1 );
|
2013-12-11 02:08:07 +00:00
|
|
|
|
2014-01-14 15:42:52 +00:00
|
|
|
// Check that the close button on the lightbox still follow the spec (being visible right away)
|
2014-03-31 21:33:12 +00:00
|
|
|
assert.strictEqual( $( '#qunit-fixture .mw-mmv-close' ).length, 1, 'There should be a close button' );
|
2022-05-20 00:18:43 +00:00
|
|
|
assert.true( $( '#qunit-fixture .mw-mmv-close' ).is( ':visible' ), 'The close button should be visible' );
|
2014-01-14 15:42:52 +00:00
|
|
|
|
2013-12-11 02:08:07 +00:00
|
|
|
// Unattach lightbox from document
|
|
|
|
lightbox.unattach();
|
|
|
|
|
|
|
|
// UI areas not attached to the document anymore.
|
2015-01-23 12:48:27 +00:00
|
|
|
checkIfUIAreasAttachedToDocument( 0 );
|
2014-03-29 01:38:22 +00:00
|
|
|
|
|
|
|
restoreScrollTo();
|
2013-12-11 02:08:07 +00:00
|
|
|
} );
|
|
|
|
|
2017-07-25 23:38:21 +00:00
|
|
|
QUnit.test( 'Handler registration and clearance work OK', function ( assert ) {
|
2023-05-20 08:30:52 +00:00
|
|
|
var lightbox = new LightboxInterface(),
|
2017-05-16 14:40:46 +00:00
|
|
|
handlerCalls = 0,
|
|
|
|
clock = this.sandbox.useFakeTimers();
|
2013-12-11 02:08:07 +00:00
|
|
|
|
|
|
|
function handleEvent() {
|
|
|
|
handlerCalls++;
|
|
|
|
}
|
|
|
|
|
|
|
|
lightbox.handleEvent( 'test', handleEvent );
|
|
|
|
$( document ).trigger( 'test' );
|
2017-05-16 14:40:46 +00:00
|
|
|
clock.tick( 10 );
|
2013-12-11 02:08:07 +00:00
|
|
|
assert.strictEqual( handlerCalls, 1, 'The handler was called when we triggered the event.' );
|
2017-05-16 14:40:46 +00:00
|
|
|
|
2013-12-11 02:08:07 +00:00
|
|
|
lightbox.clearEvents();
|
2017-05-16 14:40:46 +00:00
|
|
|
|
2013-12-11 02:08:07 +00:00
|
|
|
$( document ).trigger( 'test' );
|
2017-05-16 14:40:46 +00:00
|
|
|
clock.tick( 10 );
|
2013-12-11 02:08:07 +00:00
|
|
|
assert.strictEqual( handlerCalls, 1, 'The handler was not called after calling lightbox.clearEvents().' );
|
2017-05-16 14:40:46 +00:00
|
|
|
|
|
|
|
clock.restore();
|
2013-12-11 02:08:07 +00:00
|
|
|
} );
|
|
|
|
|
2018-06-06 17:23:16 +00:00
|
|
|
QUnit.test( 'Fullscreen mode init', function ( assert ) {
|
2023-05-20 08:30:52 +00:00
|
|
|
var lightbox = new LightboxInterface(),
|
2014-02-25 01:54:05 +00:00
|
|
|
oldFnEnterFullscreen = $.fn.enterFullscreen,
|
|
|
|
oldFnExitFullscreen = $.fn.exitFullscreen,
|
|
|
|
oldSupportFullscreen = $.support.fullscreen;
|
|
|
|
|
|
|
|
// Since we don't want these tests to really open fullscreen
|
|
|
|
// which is subject to user security confirmation,
|
|
|
|
// we use a mock that pretends regular jquery.fullscreen behavior happened
|
2023-05-20 08:30:52 +00:00
|
|
|
$.fn.enterFullscreen = enterFullscreenMock;
|
|
|
|
$.fn.exitFullscreen = exitFullscreenMock;
|
2014-02-25 01:54:05 +00:00
|
|
|
|
2014-03-29 01:38:22 +00:00
|
|
|
stubScrollTo();
|
|
|
|
|
2019-02-05 23:59:52 +00:00
|
|
|
lightbox.buttons.fadeOut = function () {};
|
2014-03-29 01:38:22 +00:00
|
|
|
|
2014-02-25 01:54:05 +00:00
|
|
|
// Attach lightbox to testing fixture to avoid interference with other tests.
|
|
|
|
lightbox.attach( '#qunit-fixture' );
|
|
|
|
|
|
|
|
$.support.fullscreen = false;
|
2014-04-04 09:32:30 +00:00
|
|
|
lightbox.setupCanvasButtons();
|
2014-02-25 01:54:05 +00:00
|
|
|
|
2014-04-04 09:32:30 +00:00
|
|
|
assert.strictEqual( lightbox.$fullscreenButton.css( 'display' ), 'none',
|
2014-02-25 01:54:05 +00:00
|
|
|
'Fullscreen button is hidden when fullscreen mode is unavailable' );
|
|
|
|
|
|
|
|
$.support.fullscreen = true;
|
2014-04-04 09:32:30 +00:00
|
|
|
lightbox.setupCanvasButtons();
|
2014-02-25 01:54:05 +00:00
|
|
|
|
2017-05-16 14:40:46 +00:00
|
|
|
assert.strictEqual( lightbox.$fullscreenButton.css( 'display' ), '',
|
2014-02-25 01:54:05 +00:00
|
|
|
'Fullscreen button is visible when fullscreen mode is available' );
|
|
|
|
|
|
|
|
// Entering fullscreen
|
2018-04-24 14:47:41 +00:00
|
|
|
lightbox.$fullscreenButton.trigger( 'click' );
|
2014-02-25 01:54:05 +00:00
|
|
|
|
2016-07-18 13:49:27 +00:00
|
|
|
assert.strictEqual( lightbox.$main.hasClass( 'jq-fullscreened' ), true,
|
2015-01-23 12:48:27 +00:00
|
|
|
'Fullscreened area has the fullscreen class' );
|
2016-07-18 13:49:27 +00:00
|
|
|
assert.strictEqual( lightbox.isFullscreen, true, 'Lightbox knows it\'s in fullscreen mode' );
|
2014-02-25 01:54:05 +00:00
|
|
|
|
|
|
|
// Exiting fullscreen
|
2018-04-24 14:47:41 +00:00
|
|
|
lightbox.$fullscreenButton.trigger( 'click' );
|
2014-02-25 01:54:05 +00:00
|
|
|
|
2016-07-18 13:49:27 +00:00
|
|
|
assert.strictEqual( lightbox.$main.hasClass( 'jq-fullscreened' ), false,
|
2015-01-23 12:48:27 +00:00
|
|
|
'Fullscreened area doesn\'t have the fullscreen class anymore' );
|
2016-07-18 13:49:27 +00:00
|
|
|
assert.strictEqual( lightbox.isFullscreen, false, 'Lightbox knows it\'s not in fullscreen mode' );
|
2014-02-25 01:54:05 +00:00
|
|
|
|
|
|
|
// Entering fullscreen
|
2018-04-24 14:47:41 +00:00
|
|
|
lightbox.$fullscreenButton.trigger( 'click' );
|
2014-02-25 01:54:05 +00:00
|
|
|
|
|
|
|
// Hard-exiting fullscreen
|
2018-04-24 14:47:41 +00:00
|
|
|
lightbox.$closeButton.trigger( 'click' );
|
2014-02-25 01:54:05 +00:00
|
|
|
|
|
|
|
// Re-attach after hard-exit
|
|
|
|
lightbox.attach( '#qunit-fixture' );
|
|
|
|
|
2016-07-18 13:49:27 +00:00
|
|
|
assert.strictEqual( lightbox.$main.hasClass( 'jq-fullscreened' ), false,
|
2015-01-23 12:48:27 +00:00
|
|
|
'Fullscreened area doesn\'t have the fullscreen class anymore' );
|
2016-07-18 13:49:27 +00:00
|
|
|
assert.strictEqual( lightbox.isFullscreen, false, 'Lightbox knows it\'s not in fullscreen mode' );
|
2014-02-25 01:54:05 +00:00
|
|
|
|
|
|
|
// Unattach lightbox from document
|
|
|
|
lightbox.unattach();
|
|
|
|
|
|
|
|
$.fn.enterFullscreen = oldFnEnterFullscreen;
|
|
|
|
$.fn.exitFullscreen = oldFnExitFullscreen;
|
|
|
|
$.support.fullscreen = oldSupportFullscreen;
|
2014-03-29 01:38:22 +00:00
|
|
|
restoreScrollTo();
|
2014-02-25 01:54:05 +00:00
|
|
|
} );
|
|
|
|
|
2017-07-25 23:38:21 +00:00
|
|
|
QUnit.test( 'Fullscreen mode', function ( assert ) {
|
2014-10-27 16:17:49 +00:00
|
|
|
var buttonOffset, panelBottom,
|
|
|
|
oldRevealButtonsAndFadeIfNeeded,
|
2023-05-20 08:30:52 +00:00
|
|
|
lightbox = new LightboxInterface(),
|
|
|
|
viewer = getMultimediaViewer(),
|
2014-01-30 07:22:26 +00:00
|
|
|
oldFnEnterFullscreen = $.fn.enterFullscreen,
|
2014-10-27 16:17:49 +00:00
|
|
|
oldFnExitFullscreen = $.fn.exitFullscreen;
|
2014-01-30 07:22:26 +00:00
|
|
|
|
2014-03-29 01:38:22 +00:00
|
|
|
stubScrollTo();
|
|
|
|
|
2014-02-13 09:52:40 +00:00
|
|
|
// ugly hack to avoid preloading which would require lightbox list being set up
|
2014-03-04 11:53:53 +00:00
|
|
|
viewer.preloadDistance = -1;
|
2014-02-13 09:52:40 +00:00
|
|
|
|
2014-01-30 07:22:26 +00:00
|
|
|
// Since we don't want these tests to really open fullscreen
|
|
|
|
// which is subject to user security confirmation,
|
|
|
|
// we use a mock that pretends regular jquery.fullscreen behavior happened
|
2023-05-20 08:30:52 +00:00
|
|
|
$.fn.enterFullscreen = enterFullscreenMock;
|
|
|
|
$.fn.exitFullscreen = exitFullscreenMock;
|
2014-01-30 07:22:26 +00:00
|
|
|
|
|
|
|
// Attach lightbox to testing fixture to avoid interference with other tests.
|
|
|
|
lightbox.attach( '#qunit-fixture' );
|
2014-03-04 12:52:08 +00:00
|
|
|
viewer.ui = lightbox;
|
2014-03-05 02:24:18 +00:00
|
|
|
viewer.ui = lightbox;
|
2014-01-30 07:22:26 +00:00
|
|
|
|
2018-06-06 18:23:25 +00:00
|
|
|
assert.strictEqual( lightbox.isFullscreen, false, 'Lightbox knows that it\'s not in fullscreen mode' );
|
|
|
|
assert.strictEqual( lightbox.panel.$imageMetadata.is( ':visible' ), true, 'Image metadata is visible' );
|
2014-01-30 07:22:26 +00:00
|
|
|
|
2015-01-23 12:48:27 +00:00
|
|
|
lightbox.buttons.fadeOut = function () {
|
2022-05-20 00:18:43 +00:00
|
|
|
assert.true( true, 'Opening fullscreen triggers a fadeout' );
|
2014-02-03 11:23:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Pretend that the mouse cursor is on top of the button
|
2014-02-04 23:44:36 +00:00
|
|
|
buttonOffset = lightbox.buttons.$fullscreen.offset();
|
2014-02-03 11:23:31 +00:00
|
|
|
lightbox.mousePosition = { x: buttonOffset.left, y: buttonOffset.top };
|
|
|
|
|
|
|
|
// Enter fullscreen
|
2018-04-24 14:47:41 +00:00
|
|
|
lightbox.buttons.$fullscreen.trigger( 'click' );
|
2014-01-30 07:22:26 +00:00
|
|
|
|
2019-02-05 23:59:52 +00:00
|
|
|
lightbox.buttons.fadeOut = function () {};
|
2022-05-20 00:18:43 +00:00
|
|
|
assert.true( lightbox.isFullscreen, 'Lightbox knows that it\'s in fullscreen mode' );
|
2014-02-03 11:23:31 +00:00
|
|
|
|
2014-02-04 23:44:36 +00:00
|
|
|
oldRevealButtonsAndFadeIfNeeded = lightbox.buttons.revealAndFade;
|
2014-02-03 11:23:31 +00:00
|
|
|
|
2015-01-23 12:48:27 +00:00
|
|
|
lightbox.buttons.revealAndFade = function ( position ) {
|
2022-05-20 00:18:43 +00:00
|
|
|
assert.true( true, 'Moving the cursor triggers a reveal + fade' );
|
2014-02-03 11:23:31 +00:00
|
|
|
|
2014-02-04 23:44:36 +00:00
|
|
|
oldRevealButtonsAndFadeIfNeeded.call( this, position );
|
2014-02-03 11:23:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Pretend that the mouse cursor moved to the top-left corner
|
|
|
|
lightbox.mousemove( { pageX: 0, pageY: 0 } );
|
|
|
|
|
2019-02-05 23:59:52 +00:00
|
|
|
lightbox.buttons.revealAndFadeIfNeeded = function () {};
|
2014-02-03 11:23:31 +00:00
|
|
|
|
2015-01-23 12:48:27 +00:00
|
|
|
panelBottom = $( '.mw-mmv-post-image' ).position().top + $( '.mw-mmv-post-image' ).height();
|
2014-10-27 16:17:49 +00:00
|
|
|
|
2018-06-06 17:23:16 +00:00
|
|
|
assert.strictEqual( panelBottom, $( window ).height(), 'Image metadata does not extend beyond the viewport' );
|
2014-01-30 07:22:26 +00:00
|
|
|
|
2017-06-07 14:52:52 +00:00
|
|
|
lightbox.buttons.revealAndFade = function ( position ) {
|
2022-05-20 00:18:43 +00:00
|
|
|
assert.true( true, 'Closing fullscreen triggers a reveal + fade' );
|
2017-06-07 14:52:52 +00:00
|
|
|
|
|
|
|
oldRevealButtonsAndFadeIfNeeded.call( this, position );
|
|
|
|
};
|
|
|
|
|
2014-02-04 23:44:36 +00:00
|
|
|
// Exiting fullscreen
|
2018-04-24 14:47:41 +00:00
|
|
|
lightbox.buttons.$fullscreen.trigger( 'click' );
|
2014-01-30 07:22:26 +00:00
|
|
|
|
2015-01-23 12:48:27 +00:00
|
|
|
panelBottom = $( '.mw-mmv-post-image' ).position().top + $( '.mw-mmv-post-image' ).height();
|
2014-10-27 16:17:49 +00:00
|
|
|
|
2022-05-20 00:18:43 +00:00
|
|
|
assert.true( panelBottom > $( window ).height(), 'Image metadata extends beyond the viewport' );
|
2018-06-06 18:23:25 +00:00
|
|
|
assert.strictEqual( lightbox.isFullscreen, false, 'Lightbox knows that it\'s not in fullscreen mode' );
|
2014-01-30 07:22:26 +00:00
|
|
|
|
|
|
|
// Unattach lightbox from document
|
|
|
|
lightbox.unattach();
|
|
|
|
|
|
|
|
$.fn.enterFullscreen = oldFnEnterFullscreen;
|
|
|
|
$.fn.exitFullscreen = oldFnExitFullscreen;
|
2014-03-29 01:38:22 +00:00
|
|
|
restoreScrollTo();
|
2014-01-30 07:22:26 +00:00
|
|
|
} );
|
|
|
|
|
2017-07-25 23:38:21 +00:00
|
|
|
QUnit.test( 'isAnyActiveButtonHovered', function ( assert ) {
|
2023-05-20 08:30:52 +00:00
|
|
|
var lightbox = new LightboxInterface();
|
2014-02-03 11:23:31 +00:00
|
|
|
|
2014-03-29 01:38:22 +00:00
|
|
|
stubScrollTo();
|
|
|
|
|
2014-02-03 11:23:31 +00:00
|
|
|
// Attach lightbox to testing fixture to avoid interference with other tests.
|
|
|
|
lightbox.attach( '#qunit-fixture' );
|
|
|
|
|
2019-01-03 13:47:16 +00:00
|
|
|
lightbox.buttons.$buttons.each( function () {
|
|
|
|
var $button = $( this ),
|
|
|
|
offset = $button.show().offset(),
|
|
|
|
width = $button.width(),
|
|
|
|
height = $button.height(),
|
|
|
|
disabled = $button.hasClass( 'disabled' );
|
2014-02-03 11:23:31 +00:00
|
|
|
|
2014-02-04 23:44:36 +00:00
|
|
|
assert.strictEqual( lightbox.buttons.isAnyActiveButtonHovered( offset.left, offset.top ),
|
2014-02-03 11:23:31 +00:00
|
|
|
!disabled,
|
|
|
|
'Hover detection works for top-left corner of element' );
|
2014-02-04 23:44:36 +00:00
|
|
|
assert.strictEqual( lightbox.buttons.isAnyActiveButtonHovered( offset.left + width, offset.top ),
|
2014-02-03 11:23:31 +00:00
|
|
|
!disabled,
|
|
|
|
'Hover detection works for top-right corner of element' );
|
2014-02-04 23:44:36 +00:00
|
|
|
assert.strictEqual( lightbox.buttons.isAnyActiveButtonHovered( offset.left, offset.top + height ),
|
2014-02-03 11:23:31 +00:00
|
|
|
!disabled,
|
|
|
|
'Hover detection works for bottom-left corner of element' );
|
2014-02-04 23:44:36 +00:00
|
|
|
assert.strictEqual( lightbox.buttons.isAnyActiveButtonHovered( offset.left + width, offset.top + height ),
|
2014-02-03 11:23:31 +00:00
|
|
|
!disabled,
|
|
|
|
'Hover detection works for bottom-right corner of element' );
|
2017-10-31 17:49:29 +00:00
|
|
|
assert.strictEqual(
|
|
|
|
lightbox.buttons.isAnyActiveButtonHovered(
|
|
|
|
offset.left + ( width / 2 ), offset.top + ( height / 2 )
|
|
|
|
),
|
2014-02-03 11:23:31 +00:00
|
|
|
!disabled,
|
2017-10-31 17:49:29 +00:00
|
|
|
'Hover detection works for center of element'
|
|
|
|
);
|
2014-02-03 11:23:31 +00:00
|
|
|
} );
|
|
|
|
|
|
|
|
// Unattach lightbox from document
|
|
|
|
lightbox.unattach();
|
2014-03-29 01:38:22 +00:00
|
|
|
restoreScrollTo();
|
2014-02-03 11:23:31 +00:00
|
|
|
} );
|
|
|
|
|
2017-07-25 23:38:21 +00:00
|
|
|
QUnit.test( 'Keyboard prev/next', function ( assert ) {
|
2023-05-20 08:30:52 +00:00
|
|
|
var viewer = getMultimediaViewer(),
|
|
|
|
lightbox = new LightboxInterface();
|
2014-03-04 12:52:08 +00:00
|
|
|
|
|
|
|
viewer.setupEventHandlers();
|
2014-02-26 17:04:29 +00:00
|
|
|
|
|
|
|
// Since we define both, the test works regardless of RTL settings
|
2023-05-21 11:21:02 +00:00
|
|
|
lightbox.on( 'next', () => assert.true( true, 'Next image was open' ) );
|
|
|
|
lightbox.on( 'prev', () => assert.true( true, 'Prev image was open' ) );
|
|
|
|
|
|
|
|
lightbox.keydown( $.Event( 'keydown', { key: 'ArrowLeft' } ) );
|
|
|
|
lightbox.keydown( $.Event( 'keydown', { key: 'ArrowRight' } ) );
|
|
|
|
|
|
|
|
lightbox.off( 'next' ).on( 'next', () => assert.true( false, 'Next image should not have been open' ) );
|
|
|
|
lightbox.off( 'prev' ).on( 'prev', () => assert.true( false, 'Prev image should not have been open' ) );
|
|
|
|
|
|
|
|
lightbox.keydown( $.Event( 'keydown', { key: 'ArrowLeft', altKey: true } ) );
|
|
|
|
lightbox.keydown( $.Event( 'keydown', { key: 'ArrowRight', altKey: true } ) );
|
|
|
|
lightbox.keydown( $.Event( 'keydown', { key: 'ArrowLeft', ctrlKey: true } ) );
|
|
|
|
lightbox.keydown( $.Event( 'keydown', { key: 'ArrowRight', ctrlKey: true } ) );
|
|
|
|
lightbox.keydown( $.Event( 'keydown', { key: 'ArrowLeft', shiftKey: true } ) );
|
|
|
|
lightbox.keydown( $.Event( 'keydown', { key: 'ArrowRight', shiftKey: true } ) );
|
|
|
|
lightbox.keydown( $.Event( 'keydown', { key: 'ArrowLeft', metaKey: true } ) );
|
|
|
|
lightbox.keydown( $.Event( 'keydown', { key: 'ArrowRight', metaKey: true } ) );
|
2014-02-26 17:04:29 +00:00
|
|
|
|
2014-03-04 12:52:08 +00:00
|
|
|
viewer.cleanupEventHandlers();
|
2014-02-26 17:04:29 +00:00
|
|
|
} );
|
2018-11-12 16:33:24 +00:00
|
|
|
}() );
|