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:
Kunal Mehta 2016-03-14 15:23:08 -07:00
parent f54c435ccc
commit 7d4ac2a76b

View file

@ -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 );
}; };
/** /**