Index: branches/resourceloader/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | this.get = function( keys, fallback ) { |
86 | 86 | if ( typeof keys === 'object' ) { |
87 | 87 | var result = {}; |
88 | | - for ( var k in keys ) { |
| 88 | + for ( var k = 0; k < keys.length; k++ ) { |
89 | 89 | if ( typeof values[keys[k]] !== 'undefined' ) { |
90 | 90 | result[keys[k]] = values[keys[k]]; |
91 | 91 | } |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | */ |
103 | 103 | this.exists = function( keys ) { |
104 | 104 | if ( typeof keys === 'object' ) { |
105 | | - for ( var k in keys ) { |
| 105 | + for ( var k = 0; k < keys.length; k++ ) { |
106 | 106 | if ( !( keys[k] in values ) ) { |
107 | 107 | return false; |
108 | 108 | } |