r114013 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114012‎ | r114013 | r114014 >
Date:14:44, 16 March 2012
Author:kaldari
Status:ok
Tags:
Comment:
partial fix for bug 35057 - backporting a patch from jQuery 1.7.2pre
Modified paths:
  • /trunk/phase3/resources/jquery/jquery.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/jquery/jquery.js
@@ -6447,6 +6447,7 @@
64486448 rupper = /([A-Z]|^ms)/g,
64496449 rnumpx = /^-?\d+(?:px)?$/i,
64506450 rnum = /^-?\d/,
 6451+ rnumnonpx = /^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,
64516452 rrelNum = /^([\-+])=([\-+.\de]+)/,
64526453
64536454 cssShow = { position: "absolute", visibility: "hidden", display: "block" },
@@ -6794,6 +6795,12 @@
67956796 if ( val < 0 || val == null ) {
67966797 val = elem.style[ name ] || 0;
67976798 }
 6799+
 6800+ // Computed unit is not pixels. Stop here and return.
 6801+ if ( rnumnonpx.test(val) ) {
 6802+ return val;
 6803+ }
 6804+
67986805 // Normalize "", auto, and prepare for extra
67996806 val = parseFloat( val ) || 0;
68006807

Follow-up revisions

RevisionCommit summaryAuthorDate
r114016fix for bug 35057 - also suggested as an upstream change for jquery.elastickaldari15:19, 16 March 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113458partial work-around for jQuery/jQuery.elastic bug, see bug 35057kaldari07:22, 9 March 2012

Status & tagging log