mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-24 02:39:33 +00:00
Have mw.echo.api.APIHandler.markItemRead actually return a promise
Per its docs which say it does. Change-Id: I2a4fb393c1bc3eba31a1bad34342a11800767fb0
This commit is contained in:
parent
f54c435ccc
commit
7d4ac2a76b
|
@ -122,7 +122,7 @@
|
||||||
* are marked as read.
|
* are marked as read.
|
||||||
*/
|
*/
|
||||||
mw.echo.api.APIHandler.prototype.markItemRead = function ( itemId, isRead ) {
|
mw.echo.api.APIHandler.prototype.markItemRead = function ( itemId, isRead ) {
|
||||||
this.markItemsRead( [ itemId ], isRead );
|
return this.markItemsRead( [ itemId ], isRead );
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue