Add mw.mmv.viewer shortcut for current MediaViewer instance

Bug: T76923
Change-Id: I38142b541d58e66fcef6e6e589507dcf30b1b3be
This commit is contained in:
gladoscc 2014-12-30 18:13:22 +11:00
parent dc8c2bc545
commit c0c50a8d35

View file

@ -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;