Improve doc for mw.util.getParamValue
authorMatthew Flaschen <mflaschen@wikimedia.org>
Mon, 20 May 2013 21:02:25 +0000 (17:02 -0400)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Mon, 20 May 2013 21:09:00 +0000 (17:09 -0400)
Change-Id: I4f008617c278a30eb43d21c942e1ab06a6db1c0a

resources/mediawiki/mediawiki.util.js

index bd8e596..481929d 100644 (file)
                 * Returns null if not found.
                 *
                 * @param {string} param The parameter name.
-                * @param {string} [url] URL to search through.
+                * @param {string} [url=document.location.href] URL to search through, defaulting to the current document's URL.
                 * @return {Mixed} Parameter value or null.
                 */
                getParamValue: function ( param, url ) {