]> source.dussan.org Git - jquery.git/commitdiff
Fix for #476
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 11 Dec 2006 09:25:44 +0000 (09:25 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 11 Dec 2006 09:25:44 +0000 (09:25 +0000)
src/jquery/jquery.js

index 9f9aac66a0cc04c22bfc24aed9a8a461a93681bd..9e62fe3cb7f37cb845b23baee2eeb5c83a63ace7 100644 (file)
@@ -1285,11 +1285,6 @@ jQuery.extend({
 \r
                        ret = elem.style[prop];\r
 \r
-               } else if (elem.currentStyle) {\r
-\r
-                       var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();});\r
-                       ret = elem.currentStyle[prop] || elem.currentStyle[newProp];\r
-\r
                } else if (document.defaultView && document.defaultView.getComputedStyle) {\r
 \r
                        if (prop == "cssFloat" || prop == "styleFloat")\r
@@ -1308,6 +1303,11 @@ jQuery.extend({
                                    ret = c && c.getPropertyValue(prop) || '';\r
                                });\r
 \r
+               } else if (elem.currentStyle) {\r
+\r
+                       var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();});\r
+                       ret = elem.currentStyle[prop] || elem.currentStyle[newProp];\r
+                       \r
                }\r
 \r
                return ret;\r