2018-11-12 13:56:38 +00:00
|
|
|
( function () {
|
2016-04-10 13:31:02 +00:00
|
|
|
/**
|
|
|
|
* Sorted list abstract data structure.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @abstract
|
2024-04-30 14:21:54 +00:00
|
|
|
* @mixes OO.EventEmitter
|
|
|
|
* @mixes OO.SortedEmitterList
|
2016-04-10 13:31:02 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
*/
|
2016-11-18 21:16:43 +00:00
|
|
|
mw.echo.dm.SortedList = function MwEchoDmSortedList() {
|
|
|
|
// Mixin constructors
|
2016-04-10 13:31:02 +00:00
|
|
|
OO.EventEmitter.call( this );
|
|
|
|
OO.SortedEmitterList.call( this );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Initialization */
|
|
|
|
|
|
|
|
OO.mixinClass( mw.echo.dm.SortedList, OO.EventEmitter );
|
|
|
|
OO.mixinClass( mw.echo.dm.SortedList, OO.SortedEmitterList );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines whether or not this list contains items
|
|
|
|
* or lists of items.
|
|
|
|
*
|
|
|
|
* @return {boolean} This list is a group
|
|
|
|
*/
|
|
|
|
mw.echo.dm.SortedList.prototype.isGroup = null;
|
2018-11-12 13:56:38 +00:00
|
|
|
}() );
|