Merge "Add mw.mmv.viewer shortcut for current MediaViewer instance"

This commit is contained in:
jenkins-bot 2014-12-31 01:01:00 +00:00 committed by Gerrit Code Review
commit f65d846b81

View file

@ -486,6 +486,7 @@
if ( this.viewer === undefined ) { if ( this.viewer === undefined ) {
this.viewer = new mw.mmv.MultimediaViewer( mw.config ); this.viewer = new mw.mmv.MultimediaViewer( mw.config );
this.viewer.setupEventHandlers(); this.viewer.setupEventHandlers();
mw.mmv.viewer = this.viewer;
} }
return this.viewer; return this.viewer;