There is a jQuery bug causing events named 'watch' to break in Firefox
Change-Id: Ie44066bcb6fd84ee77551efa1ca40f5543126d2c
accesskeyTip = $link.attr( 'title' ).match( mw.util.tooltipAccessKeyRegexp );
$li = $link.closest( 'li' );
/**
accesskeyTip = $link.attr( 'title' ).match( mw.util.tooltipAccessKeyRegexp );
$li = $link.closest( 'li' );
/**
- * Trigger a 'watch' event for this List item.
+ * Trigger a 'watchpage' event for this List item.
* Announce the otherAction value as the first param.
* Used to monitor the state of watch link.
* TODO: Revise when system wide hooks are implemented
*/
if( state === undefined ) {
* Announce the otherAction value as the first param.
* Used to monitor the state of watch link.
* TODO: Revise when system wide hooks are implemented
*/
if( state === undefined ) {
- $li.trigger( 'watch.mw', otherAction );
+ $li.trigger( 'watchpage.mw', otherAction );