mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
df8fbfed38
Change-Id: I2a1bfedeba66c9ec1b3ee2640a77d5ef8782530c
31 lines
664 B
JavaScript
31 lines
664 B
JavaScript
( function () {
|
|
/**
|
|
* Sorted list abstract data structure.
|
|
*
|
|
* @class
|
|
* @abstract
|
|
* @mixes OO.EventEmitter
|
|
* @mixes OO.SortedEmitterList
|
|
*
|
|
* @constructor
|
|
*/
|
|
mw.echo.dm.SortedList = function MwEchoDmSortedList() {
|
|
// Mixin constructors
|
|
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;
|
|
}() );
|