Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/51603


Change subject: Code health: add prefix to toggleWatch
......................................................................

Code health: add prefix to toggleWatch

discourage any sort of usage

Change-Id: Ic702131f6875c465372c5663b5078cc686ea4130
---
M javascripts/modules/mf-watchstar.js
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/03/51603/1

diff --git a/javascripts/modules/mf-watchstar.js 
b/javascripts/modules/mf-watchstar.js
index 6eaa4ce..8e690fc 100644
--- a/javascripts/modules/mf-watchstar.js
+++ b/javascripts/modules/mf-watchstar.js
@@ -20,7 +20,7 @@
                M.log( 'MobileBetaWatchlist', data );
        }
 
-       function toggleWatch( title, token, unwatchflag, callback, errback ) {
+       function _toggleWatch( title, token, unwatchflag, callback, errback ) {
                var data = {
                        format: 'json', action: 'watch',
                        title: title, token: token
@@ -78,7 +78,7 @@
 
                function toggleWatchStatus( unwatch ) {
                        api.getToken( 'watch', function( data ) {
-                               toggleWatch( title, data.tokens.watchtoken, 
unwatch, success, enable );
+                               _toggleWatch( title, data.tokens.watchtoken, 
unwatch, success, enable );
                        } );
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/51603
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic702131f6875c465372c5663b5078cc686ea4130
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to