mediawiki-extensions-Discus.../modules/CommentItem.js
Ed Sanders 7be0cc3209 Create ThreadItem classes
Change-Id: Id2c5324d74eccb1209ccb76768c557722c6d9400
2020-06-12 20:35:59 +01:00

15 lines
398 B
JavaScript

var ThreadItem = require( './ThreadItem.js' );
function CommentItem( level, range, signatureRanges, timestamp, author ) {
// Parent constructor
CommentItem.super.call( this, 'comment', level, range );
this.signatureRanges = signatureRanges || [];
this.timestamp = timestamp || null;
this.author = author || null;
}
OO.inheritClass( CommentItem, ThreadItem );
module.exports = CommentItem;