Skip to content
Permalink
Browse files

Save a few bytes, thanks @danheberden!

  • Loading branch information...
dmethvin committed Aug 16, 2011
1 parent 0153287 commit 727d51ec9df1dadd742fc468ca3e003da172fb1b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/css.js
@@ -6,7 +6,7 @@ var ralpha = /alpha\([^)]*\)/i,
rupper = /([A-Z]|^ms)/g,
rnumpx = /^-?\d+(?:px)?$/i,
rnum = /^-?\d/,
rrelNum = /^([+\-])=([+\-\.\de]+)/,
rrelNum = /^([-+])=([-+.\de]+)/,

cssShow = { position: "absolute", visibility: "hidden", display: "block" },
cssWidth = [ "Left", "Right" ],
@@ -85,7 +85,7 @@ jQuery.extend({

// convert relative number strings (+= or -=) to relative numbers. #7345
if ( type === "string" && (ret = rrelNum.exec( value )) ) {
value = (ret[1] === "+"? +ret[2] : -ret[2]) + parseFloat( jQuery.css( elem, name ) );
value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
// Fixes bug #9237
type = "number";
}

0 comments on commit 727d51e

Please sign in to comment.
You can’t perform that action at this time.