diff options
| author | Igor Minar | 2011-09-15 22:03:00 +0200 | 
|---|---|---|
| committer | Igor Minar | 2011-09-16 02:44:29 +0200 | 
| commit | 009059dd1bc7817dbb55fc1b61424fd66a914bc3 (patch) | |
| tree | 415f2e0c297bdfe6b64dacfa4c6dbce43ee5a815 /src/jqLite.js | |
| parent | 6b7ddf414de82720bbf547b2fa661bf5fcec7bb6 (diff) | |
| download | angular.js-009059dd1bc7817dbb55fc1b61424fd66a914bc3.tar.bz2 | |
fix(jqLite): make css() on IE8 behave the same way as jQuery 1.6.4
Diffstat (limited to 'src/jqLite.js')
| -rw-r--r-- | src/jqLite.js | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/src/jqLite.js b/src/jqLite.js index d255845e..6d42bbc2 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -249,7 +249,17 @@ forEach({      if (isDefined(value)) {        element.style[name] = value;      } else { -      return element.style[name]; +      var val; + +      if (msie <=8) { +        // this is some IE specific weirdness that jQuery 1.6.4 does not sure why +        val = element.currentStyle && element.currentStyle[name]; +        if (val === '') val = 'auto'; +      } + +      val = val || element.style[name]; + +      return  (val === '') ? undefined : val;      }    }, | 
