From c0c50a8d35961558355196e31b9ceb363d351cac Mon Sep 17 00:00:00 2001 From: gladoscc Date: Tue, 30 Dec 2014 18:13:22 +1100 Subject: [PATCH] Add mw.mmv.viewer shortcut for current MediaViewer instance Bug: T76923 Change-Id: I38142b541d58e66fcef6e6e589507dcf30b1b3be --- resources/mmv/mmv.bootstrap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/mmv/mmv.bootstrap.js b/resources/mmv/mmv.bootstrap.js index 4efd48d8f..12c9bbe39 100644 --- a/resources/mmv/mmv.bootstrap.js +++ b/resources/mmv/mmv.bootstrap.js @@ -477,6 +477,7 @@ if ( this.viewer === undefined ) { this.viewer = new mw.mmv.MultimediaViewer( mw.config ); this.viewer.setupEventHandlers(); + mw.mmv.viewer = this.viewer; } return this.viewer;