Last modified: 2012-12-16 17:53:47 UTC
Inline (un)watching is great but hard to clone for extensions. I have an extension that ca (un)favroite pages just like the watchlist feature, but the action links take you to separate pages. It seems impossible to clone the feature. What is needed to clone it? ajaxwatch.js and wfAjaxWatch() in AjaxFunctions.php?
wfAjaxWatch and ajaxwatch.js have been deprecated and removed. AjaxFunctions.php is deprecated, but not removed yet. Uour extension offers has been or should be refactored to use the API instead. Nowadays MediaWiki ships with jQuery and various mediawiki-tailored modules such as mediawiki.api.js. These make it really easy to do what ajaxwatch used to do with only a few lines of code. Providing a way to "clone" this core feature doesn't make sense anymore since it has become trivial to implement from scratch as all the features it uses underneath have been abstracted and become available independently. In a way it is already a clone of itself.