Skip to content
Permalink
Browse files

Fix for #476

  • Loading branch information
jzaefferer committed Dec 11, 2006
1 parent df61a63 commit 665e1959cc03292a5109796dc1618d3848ec6f6e
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/jquery/jquery.js
@@ -1285,11 +1285,6 @@ jQuery.extend({

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) {

if (prop == "cssFloat" || prop == "styleFloat")
@@ -1308,6 +1303,11 @@ jQuery.extend({
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;

0 comments on commit 665e195

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