http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88802

Revision: 88802
Author:   krinkle
Date:     2011-05-25 17:18:52 +0000 (Wed, 25 May 2011)
Log Message:
-----------
Removing the last occurrences/mentions of mw.loader.go
* Follow-up r88125, r88790.
* Also cleaned up some comments to use the same uppercase/colon use as the rest 
of this file.

Search results: 
http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=202&hash=96029a8f5c6a5aaadc61767532e01571

Modified Paths:
--------------
    trunk/phase3/resources/mediawiki/mediawiki.user.js

Modified: trunk/phase3/resources/mediawiki/mediawiki.user.js
===================================================================
--- trunk/phase3/resources/mediawiki/mediawiki.user.js  2011-05-25 17:06:04 UTC 
(rev 88801)
+++ trunk/phase3/resources/mediawiki/mediawiki.user.js  2011-05-25 17:18:52 UTC 
(rev 88802)
@@ -27,7 +27,7 @@
                 * This information would potentially be stored in a cookie to 
identify a user during a
                 * session or series of sessions. It's uniqueness should not be 
depended on.
                 *
-                * @return string random set of 32 alpha-numeric characters
+                * @return String: Random set of 32 alpha-numeric characters
                 */
                function generateId() {
                        var id = '';
@@ -42,7 +42,7 @@
                /**
                 * Gets the current user's name.
                 *
-                * @return mixed user name string or null if users is anonymous
+                * @return Mixed: User name string or null if users is anonymous
                 */
                this.name = function() {
                        return mw.config.get( 'wgUserName' );
@@ -51,7 +51,7 @@
                /**
                 * Checks if the current user is anonymous.
                 *
-                * @return boolean
+                * @return Boolean
                 */
                this.anonymous = function() {
                        return that.name() ? false : true;
@@ -63,11 +63,7 @@
                 * This ID is ephemeral for everyone, staying in their browser 
only until they close
                 * their browser.
                 *
-                * Do not use this method before the first call to 
mw.loader.go(), it depends on
-                * jquery.cookie, which is added to the first pay-load just 
after mediaWiki is defined, but
-                * won't be loaded until the first call to go().
-                *
-                * @return string user name or random session ID
+                * @return String: User name or random session ID
                 */
                this.sessionId = function () {
                        var sessionId = $.cookie( 'mediaWiki.user.sessionId' );
@@ -85,11 +81,7 @@
                 * expiration time is reset each time the ID is queried, so in 
most cases this ID will
                 * persist until the browser's cookies are cleared or the user 
doesn't visit for 1 year.
                 *
-                * Do not use this method before the first call to 
mw.loader.go(), it depends on
-                * jquery.cookie, which is added to the first pay-load just 
after mediaWiki is defined, but
-                * won't be loaded until the first call to go().
-                *
-                * @return string user name or random session ID
+                * @return String: User name or random session ID
                 */
                this.id = function() {
                        var name = that.name();


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

Reply via email to