mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(jqLite): make css() on IE8 behave the same way as jQuery 1.6.4
This commit is contained in:
parent
6b7ddf414d
commit
009059dd1b
1 changed files with 11 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue