mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +00:00
8e76bc4126
Changing the way Echo's front-end architecture works to work with model-view-controller methodology. Change-Id: I97862402c41bc04dd41cd08d79f19ff677340249
34 lines
765 B
JavaScript
34 lines
765 B
JavaScript
( function ( mw ) {
|
|
/**
|
|
* Sorted list abstract data structure.
|
|
*
|
|
* @class
|
|
* @abstract
|
|
* @mixins OO.EventEmitter
|
|
* @mixins OO.SortedEmitterList
|
|
*
|
|
* @constructor
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
mw.echo.dm.SortedList = function MwEchoDmSortedList( config ) {
|
|
config = config || {};
|
|
|
|
// Mixin constructor
|
|
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;
|
|
} )( mediaWiki );
|