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

Revision: 74080
Author:   tparscal
Date:     2010-10-01 17:39:32 +0000 (Fri, 01 Oct 2010)

Log Message:
-----------
Resolved issues in r73026, namely a confusing comment and a missing var keyword.

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

Modified: trunk/phase3/resources/mediawiki/mediawiki.js
===================================================================
--- trunk/phase3/resources/mediawiki/mediawiki.js       2010-10-01 17:39:06 UTC 
(rev 74079)
+++ trunk/phase3/resources/mediawiki/mediawiki.js       2010-10-01 17:39:32 UTC 
(rev 74080)
@@ -55,9 +55,8 @@
                 * An object which allows single and multiple get/set/exists 
functionality on a list of key / value pairs
                 * 
                 * @param {boolean} global whether to get/set/exists values on 
the window object or a private object
-                * @param {function} parser function to perform extra 
processing before while getting a value which accepts
-                * value and options parameters where value is a string to be 
parsed and options is an object of options for the
-                * parser
+                * @param {function} parser function to perform extra 
processing; in the form of function( value, options )
+                * where value is the data to be parsed and options is 
additional data passed through to the parser
                 */
                'configuration': function( global, parser ) {
                        
@@ -87,7 +86,7 @@
                        this.get = function( selection, options ) {
                                if ( typeof selection === 'object' ) {
                                        var results = {};
-                                       for ( s in selection ) {
+                                       for ( var s in selection ) {
                                                if ( selection.hasOwnProperty( 
s ) ) {
                                                        if ( typeof s === 
'string' ) {
                                                                return 
that.get( values[s], selection[s] );



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

Reply via email to