diff --git a/resources/mmv/ui/mmv.ui.reuse.dialog.js b/resources/mmv/ui/mmv.ui.reuse.dialog.js index deac92d9d..9d03bec8c 100644 --- a/resources/mmv/ui/mmv.ui.reuse.dialog.js +++ b/resources/mmv/ui/mmv.ui.reuse.dialog.js @@ -141,7 +141,7 @@ DP.unattach = function() { var tab; - this.constructor.super.prototype.unattach.call( this ); + this.constructor['super'].prototype.unattach.call( this ); this.stopListeningToOutsideClick(); this.reuseTabs.off( 'select' ); diff --git a/resources/mmv/ui/mmv.ui.reuse.download.js b/resources/mmv/ui/mmv.ui.reuse.download.js index 969a659cf..7c03fd160 100644 --- a/resources/mmv/ui/mmv.ui.reuse.download.js +++ b/resources/mmv/ui/mmv.ui.reuse.download.js @@ -28,7 +28,7 @@ * @param {jQuery} $container */ function Download( $container ) { - Download.super.call( this, $container ); + Download['super'].call( this, $container ); /** @property {mw.mmv.ui.reuse.Utils} utils - */ this.utils = new mw.mmv.ui.reuse.Utils(); @@ -130,7 +130,7 @@ * Clears listeners. */ DP.unattach = function () { - this.constructor.super.prototype.unattach.call( this ); + this.constructor['super'].prototype.unattach.call( this ); this.downloadSizeMenu.getMenu().off( 'select' ); this.$selectionArrow.off( 'click' ); diff --git a/resources/mmv/ui/mmv.ui.reuse.embed.js b/resources/mmv/ui/mmv.ui.reuse.embed.js index a2227c754..3e88d7b59 100644 --- a/resources/mmv/ui/mmv.ui.reuse.embed.js +++ b/resources/mmv/ui/mmv.ui.reuse.embed.js @@ -29,7 +29,7 @@ * @param {jQuery} $container */ function Embed( $container ) { - Embed.super.call( this, $container ); + Embed['super'].call( this, $container ); /** * Formatter converting image data into formats needed for output @@ -223,7 +223,7 @@ * Clears listeners. */ EP.unattach = function() { - this.constructor.super.prototype.unattach.call( this ); + this.constructor['super'].prototype.unattach.call( this ); this.embedTextHtml.offDOMEvent( 'focus mousedown click' ); this.embedTextWikitext.offDOMEvent( 'focus mousedown click' ); @@ -363,7 +363,7 @@ * Shows the pane. */ EP.show = function () { - this.constructor.super.prototype.show.call( this ); + this.constructor['super'].prototype.show.call( this ); this.select(); }; diff --git a/resources/mmv/ui/mmv.ui.reuse.share.js b/resources/mmv/ui/mmv.ui.reuse.share.js index 69c4d3fe3..5e8e8b3d5 100644 --- a/resources/mmv/ui/mmv.ui.reuse.share.js +++ b/resources/mmv/ui/mmv.ui.reuse.share.js @@ -26,7 +26,7 @@ * @param {jQuery} $container */ function Share( $container ) { - Share.super.call( this, $container ); + Share['super'].call( this, $container ); this.init(); } @@ -66,7 +66,7 @@ * Shows the pane. */ SP.show = function () { - this.constructor.super.prototype.show.call( this ); + this.constructor['super'].prototype.show.call( this ); this.select(); }; @@ -107,7 +107,7 @@ * @inheritdoc */ SP.unattach = function() { - this.constructor.super.prototype.unattach.call( this ); + this.constructor['super'].prototype.unattach.call( this ); this.pageInput.offDOMEvent( 'focus mousedown click' ); }; diff --git a/resources/mmv/ui/mmv.ui.reuse.tab.js b/resources/mmv/ui/mmv.ui.reuse.tab.js index d5da9cb56..33143099a 100644 --- a/resources/mmv/ui/mmv.ui.reuse.tab.js +++ b/resources/mmv/ui/mmv.ui.reuse.tab.js @@ -26,7 +26,7 @@ * @constructor */ function Tab( $container ) { - Tab.super.call( this, $container ); + Tab['super'].call( this, $container ); /** * Container for the tab. diff --git a/resources/mmv/ui/mmv.ui.stripeButtons.js b/resources/mmv/ui/mmv.ui.stripeButtons.js index d898f0b59..75ceb9e9f 100644 --- a/resources/mmv/ui/mmv.ui.stripeButtons.js +++ b/resources/mmv/ui/mmv.ui.stripeButtons.js @@ -259,7 +259,7 @@ * Clears listeners. */ SBP.unattach = function () { - this.constructor.super.prototype.unattach.call( this ); + this.constructor['super'].prototype.unattach.call( this ); this.buttons.$reuse.off( 'click.mmv-stripeButtons' ); };