| 1 |
const |
| 2 |
mobile = require( 'mobile.startup' ), |
| 3 |
View = mobile.View, |
| 4 |
IssueNotice = require( './IssueNotice.js' ); |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 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; |