3 * View model for the changes list
5 * @mixins OO.EventEmitter
9 mw
.rcfilters
.dm
.ChangesListViewModel
= function MwRcfiltersDmChangesListViewModel() {
11 OO
.EventEmitter
.call( this );
17 OO
.initClass( mw
.rcfilters
.dm
.ChangesListViewModel
);
18 OO
.mixinClass( mw
.rcfilters
.dm
.ChangesListViewModel
, OO
.EventEmitter
);
25 * The list of changes is now invalid (out of date)
30 * @param {jQuery|string} changesListContent
31 * @param {jQuery} $fieldset
33 * The list of change is now up to date
39 * Invalidate the list of changes
43 mw
.rcfilters
.dm
.ChangesListViewModel
.prototype.invalidate = function () {
46 this.emit( 'invalidate' );
51 * Update the model with an updated list of changes
53 * @param {jQuery|string} changesListContent
54 * @param {jQuery} $fieldset
56 mw
.rcfilters
.dm
.ChangesListViewModel
.prototype.update = function ( changesListContent
, $fieldset
) {
58 this.emit( 'update', changesListContent
, $fieldset
);