Last modified: 2014-03-05 19:35:06 UTC
There are many methods of mw.Api which accepted callback functions as parameters "ok" and "err" (e.g. mw.Api.get/post[1], mw.Api.parse[2], etc...), but most (all) of these are deprecated. Consider showing a warning message in the console when these are used. I'm not sure if this can be made using mw.log.deprecate. [1] https://github.com/wikimedia/mediawiki-core/blob/60f114d8f5955d172680784935791e0254251c97/resources/mediawiki.api/mediawiki.api.js#L140-L149 [2] https://github.com/wikimedia/mediawiki-core/blob/aba0a461005058a3b0de377a2f67e5284004b5c6/resources/mediawiki.api/mediawiki.api.parse.js#L11-L12
Change 115898 had a related patch set uploaded by Helder.wiki: Add a warning when deprecated parameters of mw.Api are used https://gerrit.wikimedia.org/r/115898
Thanks!
Change 115898 merged by jenkins-bot: mediawiki.api: Emit warning when deprecated callback parameters are used https://gerrit.wikimedia.org/r/115898