isBorderBox and className properties are deprecated
These will soon throw warnings and soon be removed! Bug: T209007 Change-Id: Idca4c892366dc5b5e8490f1326188b97abc876f7
This commit is contained in:
parent
ae77727c7b
commit
c8693b6789
|
@ -1,5 +1,6 @@
|
||||||
( function ( M ) {
|
( function ( M ) {
|
||||||
var View = M.require( 'mobile.startup/View' ),
|
var View = M.require( 'mobile.startup/View' ),
|
||||||
|
util = M.require( 'mobile.startup/util' ),
|
||||||
Icon = M.require( 'mobile.startup/Icon' ),
|
Icon = M.require( 'mobile.startup/Icon' ),
|
||||||
notificationIcon = new Icon( {
|
notificationIcon = new Icon( {
|
||||||
name: 'notifications',
|
name: 'notifications',
|
||||||
|
@ -30,7 +31,11 @@
|
||||||
window.location.href = this.getNotificationURL();
|
window.location.href = this.getNotificationURL();
|
||||||
}.bind( this );
|
}.bind( this );
|
||||||
}
|
}
|
||||||
View.call( this, options );
|
View.call( this,
|
||||||
|
util.extend( options, {
|
||||||
|
isBorderBox: false
|
||||||
|
} )
|
||||||
|
);
|
||||||
this.url = options.url;
|
this.url = options.url;
|
||||||
this._bindOverlayManager();
|
this._bindOverlayManager();
|
||||||
this.setCount( count );
|
this.setCount( count );
|
||||||
|
@ -53,7 +58,6 @@
|
||||||
hasUnseenNotifications: false,
|
hasUnseenNotifications: false,
|
||||||
notificationCountRaw: 0
|
notificationCountRaw: 0
|
||||||
},
|
},
|
||||||
isBorderBox: false,
|
|
||||||
/**
|
/**
|
||||||
* Loads a ResourceLoader module script. Shows ajax loader whilst loading.
|
* Loads a ResourceLoader module script. Shows ajax loader whilst loading.
|
||||||
* @method
|
* @method
|
||||||
|
|
|
@ -1,18 +1,23 @@
|
||||||
( function ( M ) {
|
( function ( M ) {
|
||||||
|
|
||||||
var View = M.require( 'mobile.startup/View' );
|
var View = M.require( 'mobile.startup/View' ),
|
||||||
|
util = M.require( 'mobile.startup/util' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays a little arrow at the bottom right of the viewport.
|
* Displays a little arrow at the bottom right of the viewport.
|
||||||
* @class BackToTopOverlay
|
* @class BackToTopOverlay
|
||||||
* @extends View
|
* @extends View
|
||||||
|
* @param {Object} props
|
||||||
*/
|
*/
|
||||||
function BackToTopOverlay() {
|
function BackToTopOverlay( props ) {
|
||||||
View.apply( this, arguments );
|
View.call( this,
|
||||||
|
util.extend( {}, props, {
|
||||||
|
className: 'backtotop'
|
||||||
|
} )
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
OO.mfExtend( BackToTopOverlay, View, {
|
OO.mfExtend( BackToTopOverlay, View, {
|
||||||
className: 'backtotop',
|
|
||||||
template: mw.template.get( 'skins.minerva.options', 'BackToTopOverlay.hogan' ),
|
template: mw.template.get( 'skins.minerva.options', 'BackToTopOverlay.hogan' ),
|
||||||
events: $.extend( {}, View.prototype.events, {
|
events: $.extend( {}, View.prototype.events, {
|
||||||
click: 'onBackToTopClick'
|
click: 'onBackToTopClick'
|
||||||
|
|
|
@ -27,17 +27,12 @@
|
||||||
|
|
||||||
Overlay.call( this, {
|
Overlay.call( this, {
|
||||||
issues: issues,
|
issues: issues,
|
||||||
|
className: 'overlay overlay-issues',
|
||||||
heading: '<strong>' + headingText + '</strong>'
|
heading: '<strong>' + headingText + '</strong>'
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
OO.mfExtend( PageIssuesOverlay, Overlay, {
|
OO.mfExtend( PageIssuesOverlay, Overlay, {
|
||||||
/**
|
|
||||||
* @memberof PageIssuesOverlay
|
|
||||||
* @instance
|
|
||||||
*/
|
|
||||||
className: 'overlay overlay-issues',
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @memberof PageIssuesOverlay
|
* @memberof PageIssuesOverlay
|
||||||
* @instance
|
* @instance
|
||||||
|
|
Loading…
Reference in New Issue