}, 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 ) {