mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-11 22:06:07 +00:00
a32999e641
Change-Id: Icabf6e065ed5685207731262db72faf848a0a04d
37 lines
741 B
JavaScript
37 lines
741 B
JavaScript
( function ( M ) {
|
|
var
|
|
mobile = M.require( 'mobile.startup' ),
|
|
mfExtend = mobile.mfExtend,
|
|
View = mobile.View,
|
|
IssueNotice = require( './IssueNotice.js' );
|
|
|
|
/**
|
|
* IssueList
|
|
*
|
|
* @class IssueList
|
|
* @extends View
|
|
*
|
|
* @param {IssueSummary} issues
|
|
*/
|
|
function IssueList( issues ) {
|
|
this.issues = issues;
|
|
View.call( this, { className: 'cleanup' } );
|
|
}
|
|
|
|
mfExtend( IssueList, View, {
|
|
tagName: 'ul',
|
|
postRender: function () {
|
|
View.prototype.postRender.apply( this, arguments );
|
|
this.append(
|
|
this.issues.map( function ( issue ) {
|
|
return new IssueNotice( issue ).$el;
|
|
} )
|
|
);
|
|
}
|
|
} );
|
|
|
|
module.exports = IssueList;
|
|
|
|
// eslint-disable-next-line no-restricted-properties
|
|
}( mw.mobileFrontend ) );
|