Made sure that css() in IE handles negative non-px values correctly. Fixes #3331.

This commit is contained in:
jeresig 2009-12-05 15:12:02 -05:00
parent 6071e939c7
commit aae0617c83
2 changed files with 6 additions and 3 deletions

View file

@ -5,8 +5,8 @@ var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
rfloat = /float/i,
rdashAlpha = /-([a-z])/ig,
rupper = /([A-Z])/g,
rnumpx = /^\d+(?:px)?$/i,
rnum = /^\d/,
rnumpx = /^-?\d+(?:px)?$/i,
rnum = /^-?\d/,
// cache check for defaultView.getComputedStyle
getComputedStyle = document.defaultView && document.defaultView.getComputedStyle,