r91505 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91504‎ | r91505 | r91506 >
Date:23:34, 5 July 2011
Author:brion
Status:ok
Tags:
Comment:
Partial backport of r80572 per bug 29726: failure in map.exists in WebKit browsers for multiple keys or if a global 'keys' object exists
Modified paths:
  • /branches/wmf/1.17wmf1/resources/mediawiki/mediawiki.js (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/resources/mediawiki/mediawiki.js
@@ -134,7 +134,7 @@
135135 * @return boolean Existence of key(s)
136136 */
137137 Map.prototype.exists = function( selection ) {
138 - if ( typeof keys === 'object' ) {
 138+ if ( typeof selection === 'object' ) {
139139 for ( var s = 0; s < selection.length; s++ ) {
140140 if ( !( selection[s] in this.values ) ) {
141141 return false;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r80572Fix bug in mw.Map + fix bug 26801 + wrapper mediawiki.special.upload.js...krinkle16:26, 19 January 2011
r91504Partial backport of r80572 per bug 29726: failure in map.exists in WebKit bro...brion23:31, 5 July 2011

Status & tagging log