mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-29 13:17:35 +00:00
Initialise dialogOpen value to false
Because it was undefined, the toggleClass method just turned the class on if it wasn't there in the first place. Silly jQuery, Trix are for kids. Change-Id: I4e21e033529834a4f808270306c72f5756b69ab2 Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/921
This commit is contained in:
parent
cab8fe42d5
commit
b0aa337fd5
|
@ -33,6 +33,12 @@
|
|||
function Canvas( $container, $imageWrapper, $mainWrapper ) {
|
||||
mw.mmv.ui.Element.call( this, $container );
|
||||
|
||||
/**
|
||||
* @property {boolean}
|
||||
* @private
|
||||
*/
|
||||
this.dialogOpen = false;
|
||||
|
||||
/**
|
||||
* @property {mw.mmv.ThumbnailWidthCalculator}
|
||||
* @private
|
||||
|
|
Loading…
Reference in a new issue