Fix for #476
This commit is contained in:
parent
df61a63fca
commit
665e1959cc
10
src/jquery/jquery.js
vendored
10
src/jquery/jquery.js
vendored
|
@ -1285,11 +1285,6 @@ jQuery.extend({
|
||||||
|
|
||||||
ret = elem.style[prop];
|
ret = elem.style[prop];
|
||||||
|
|
||||||
} else if (elem.currentStyle) {
|
|
||||||
|
|
||||||
var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();});
|
|
||||||
ret = elem.currentStyle[prop] || elem.currentStyle[newProp];
|
|
||||||
|
|
||||||
} else if (document.defaultView && document.defaultView.getComputedStyle) {
|
} else if (document.defaultView && document.defaultView.getComputedStyle) {
|
||||||
|
|
||||||
if (prop == "cssFloat" || prop == "styleFloat")
|
if (prop == "cssFloat" || prop == "styleFloat")
|
||||||
|
@ -1308,6 +1303,11 @@ jQuery.extend({
|
||||||
ret = c && c.getPropertyValue(prop) || '';
|
ret = c && c.getPropertyValue(prop) || '';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
} else if (elem.currentStyle) {
|
||||||
|
|
||||||
|
var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();});
|
||||||
|
ret = elem.currentStyle[prop] || elem.currentStyle[newProp];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue