Merge "auth: Follow up on e907d4328dc3e"
[lhc/web/wiklou.git] / resources / src / mediawiki.widgets.datetime / CalendarWidget.js
index 4c3d8d4..3ad6e29 100644 (file)
@@ -40,7 +40,7 @@
                }, config );
 
                // Parent constructor
-               mw.widgets.datetime.CalendarWidget[ 'super' ].call( this, config );
+               mw.widgets.datetime.CalendarWidget.super.call( this, config );
 
                // Mixin constructors
                OO.ui.mixin.TabIndexedElement.call( this, $.extend( {}, config, { $tabIndexed: this.$element } ) );
                if ( dates instanceof Date ) {
                        dates = [ dates ];
                } else if ( Array.isArray( dates ) ) {
-                       dates = dates.filter( function ( dt ) { return dt instanceof Date; } );
+                       dates = dates.filter( function ( dt ) {
+                               return dt instanceof Date;
+                       } );
                        dates.sort();
                } else {
                        dates = [];
                change = visible !== this.isVisible();
 
                // Parent method
-               mw.widgets.datetime.CalendarWidget[ 'super' ].prototype.toggle.call( this, visible );
+               mw.widgets.datetime.CalendarWidget.super.prototype.toggle.call( this, visible );
 
                if ( change ) {
                        if ( visible ) {