/*!
- * OOjs UI v0.1.0-pre (53f2410336)
+ * OOjs UI v0.1.0-pre (0f50cdc46c)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: Wed Mar 19 2014 15:51:16 GMT-0700 (PDT)
+ * Date: Wed Mar 19 2014 17:39:11 GMT-0700 (PDT)
*/
( function () {
*/
OO.ui.Dialog.prototype.initialize = function () {
// Parent method
- OO.ui.Dialog.super.prototype.initialize.call( this );
+ OO.ui.Window.prototype.initialize.call( this );
// Properties
this.closeButton = new OO.ui.ButtonWidget( {
*/
OO.ui.Dialog.prototype.setup = function ( data ) {
// Parent method
- OO.ui.Dialog.super.prototype.setup.call( this, data );
+ OO.ui.Window.prototype.setup.call( this, data );
// Prevent scrolling in top-level window
this.$( window ).on( 'mousewheel', this.onWindowMouseWheelHandler );
*/
OO.ui.Dialog.prototype.teardown = function ( data ) {
// Parent method
- OO.ui.Dialog.super.prototype.teardown.call( this, data );
+ OO.ui.Window.prototype.teardown.call( this, data );
// Allow scrolling in top-level window
this.$( window ).off( 'mousewheel', this.onWindowMouseWheelHandler );
// Allow transition to complete before actually closing
setTimeout( function () {
// Parent method
- OO.ui.Dialog.super.prototype.close.call( dialog, data );
+ OO.ui.Window.prototype.close.call( dialog, data );
}, 250 );
}
};
var i, len;
// Parent method
- OO.ui.GroupWidget.super.prototype.setDisabled.call( this, disabled );
+ OO.ui.Widget.prototype.setDisabled.call( this, disabled );
// During construction, #setDisabled is called before the OO.ui.GroupElement constructor
if ( this.items ) {
*/
OO.ui.ItemWidget.prototype.setElementGroup = function ( group ) {
// Parent method
- OO.ui.ItemWidget.super.prototype.setElementGroup.call( this, group );
+ OO.ui.Element.prototype.setElementGroup.call( this, group );
// Initialize item disabled states
this.updateDisabled();
*/
OO.ui.MenuWidget.prototype.selectItem = function ( item ) {
// Parent method
- OO.ui.MenuWidget.super.prototype.selectItem.call( this, item );
+ OO.ui.SelectWidget.prototype.selectItem.call( this, item );
if ( !this.disabled ) {
if ( item ) {
var i, len, item;
// Parent method
- OO.ui.MenuWidget.super.prototype.addItems.call( this, items, index );
+ OO.ui.SelectWidget.prototype.addItems.call( this, items, index );
// Auto-initialize
if ( !this.newItems ) {
this.adjustSize();
// Parent method
- return OO.ui.TextInputWidget.super.prototype.onEdit.call( this );
+ return OO.ui.InputWidget.prototype.onEdit.call( this );
};
/**
*/
OO.ui.TextInputMenuWidget.prototype.show = function () {
// Parent method
- OO.ui.TextInputMenuWidget.super.prototype.show.call( this );
+ OO.ui.MenuWidget.prototype.show.call( this );
this.position();
this.$( this.getElementWindow() ).on( 'resize', this.onWindowResizeHandler );
*/
OO.ui.TextInputMenuWidget.prototype.hide = function () {
// Parent method
- OO.ui.TextInputMenuWidget.super.prototype.hide.call( this );
+ OO.ui.MenuWidget.prototype.hide.call( this );
this.$( this.getElementWindow() ).off( 'resize', this.onWindowResizeHandler );
return this;
}
// Parent method
- return OO.ui.ToggleButtonWidget.super.prototype.onClick.call( this );
+ return OO.ui.ButtonWidget.prototype.onClick.call( this );
};
/**
}
// Parent method
- OO.ui.ToggleButtonWidget.super.prototype.setValue.call( this, value );
+ OO.ui.ToggleWidget.prototype.setValue.call( this, value );
return this;
};