Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -55,9 +55,8 @@ |
56 | 56 | * An object which allows single and multiple get/set/exists functionality on a list of key / value pairs |
57 | 57 | * |
58 | 58 | * @param {boolean} global whether to get/set/exists values on the window object or a private object |
59 | | - * @param {function} parser function to perform extra processing before while getting a value which accepts |
60 | | - * value and options parameters where value is a string to be parsed and options is an object of options for the |
61 | | - * parser |
| 59 | + * @param {function} parser function to perform extra processing; in the form of function( value, options ) |
| 60 | + * where value is the data to be parsed and options is additional data passed through to the parser |
62 | 61 | */ |
63 | 62 | 'configuration': function( global, parser ) { |
64 | 63 | |
— | — | @@ -87,7 +86,7 @@ |
88 | 87 | this.get = function( selection, options ) { |
89 | 88 | if ( typeof selection === 'object' ) { |
90 | 89 | var results = {}; |
91 | | - for ( s in selection ) { |
| 90 | + for ( var s in selection ) { |
92 | 91 | if ( selection.hasOwnProperty( s ) ) { |
93 | 92 | if ( typeof s === 'string' ) { |
94 | 93 | return that.get( values[s], selection[s] ); |