Merge "Followup Ifb005e7c: some cleanup in comments."
[lhc/web/wiklou.git] / resources / mediawiki.page / mediawiki.page.watch.ajax.js
index 3957493..545cd07 100644 (file)
@@ -71,7 +71,7 @@
 
                actionPaths = mw.config.get( 'wgActionPaths' );
 
-               // @todo: Does MediaWiki give action path or query param
+               // @todo Does MediaWiki give action path or query param
                // precedence ? If the former, move this to the bottom
                action = mw.util.getParamValue( 'action', url );
                if ( action !== null ) {
                updateWatchLink: updateWatchLink
        };
 
-       $( document ).ready( function () {
+       $( function () {
                var $links = $( '.mw-watchlink a, a.mw-watchlink, ' +
                        '#ca-watch a, #ca-unwatch a, #mw-unwatch-link1, ' +
                        '#mw-unwatch-link2, #mw-watch-link2, #mw-watch-link1' );
                                                        title: cleanTitle
                                                }, cleanTitle
                                        );
-                                       msg = mw.messsage( 'watcherrortext', link );
+                                       msg = mw.message( 'watcherrortext', link );
 
                                        // Report to user about the error
                                        mw.notify( msg, { tag: 'watch-self' } );