Debian Codegraph @

skins/MinervaNeue/resources/skins.minerva.scripts/page-issues/overlay/IssueList.js

raw symbols SCIP
1 const
2 mobile = require( 'mobile.startup' ),
3 View = mobile.View,
4 IssueNotice = require( './IssueNotice.js' );
5
6 /**
7 * IssueList
8 *
9 * @class
10 * @ignore
11 * @extends View
12 *
13 * @param {IssueSummary} issues
14 */
15 function IssueList( issues ) {
16 this.issues = issues;
17 View.call( this, { className: 'cleanup' } );
18 }
19 OO.inheritClass( IssueList, View );
20 IssueList.prototype.tagName = 'ul';
21 IssueList.prototype.postRender = function () {
22 View.prototype.postRender.apply( this, arguments );
23 this.append(
24 ( this.issues || [] ).map( ( issue ) => new IssueNotice( issue ).$el )
25 );
26 };
27 module.exports = IssueList;