| 1 | ( function () { |
| 2 | /** |
| 3 | * Sorted list abstract data structure. |
| 4 | * |
| 5 | * @class |
| 6 | * @abstract |
| 7 | * @mixes OO.EventEmitter |
| 8 | * @mixes OO.SortedEmitterList |
| 9 | * |
| 10 | * @constructor |
| 11 | */ |
| 12 | mw.echo.dm.SortedList = function MwEchoDmSortedList() { |
| 13 | // Mixin constructors |
| 14 | OO.EventEmitter.call( this ); |
| 15 | OO.SortedEmitterList.call( this ); |
| 16 | }; |
| 17 | |
| 18 | /* Initialization */ |
| 19 | |
| 20 | OO.mixinClass( mw.echo.dm.SortedList, OO.EventEmitter ); |
| 21 | OO.mixinClass( mw.echo.dm.SortedList, OO.SortedEmitterList ); |
| 22 | |
| 23 | /** |
| 24 | * Defines whether or not this list contains items |
| 25 | * or lists of items. |
| 26 | * |
| 27 | * @return {boolean} This list is a group |
| 28 | */ |
| 29 | mw.echo.dm.SortedList.prototype.isGroup = null; |
| 30 | }() ); |