aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery/jquery.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-06-30 13:47:40 +0000
committerJohn Resig <jeresig@gmail.com>2007-06-30 13:47:40 +0000
commit62ae0eff503e7d1e99873db13efe49f634d176d0 (patch)
tree78f251c10a1bd1f645050c07f5d9e06a104ae9fa /src/jquery/jquery.js
parent21d59e8de607e33c54cf8f7bff2c5f0b7a6c40f9 (diff)
downloadjquery-62ae0eff503e7d1e99873db13efe49f634d176d0.tar.gz
jquery-62ae0eff503e7d1e99873db13efe49f634d176d0.zip
Simplified some of the IE styleFloat/cssFloat code.
Diffstat (limited to 'src/jquery/jquery.js')
-rw-r--r--src/jquery/jquery.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 5940df380..ef728f032 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -1443,7 +1443,7 @@ jQuery.extend({
}
if (prop.match(/float/i))
- prop = jQuery.browser.msie ? "styleFloat" : "cssFloat";
+ prop = jQuery.styleFloat;
if (!force && elem.style[prop])
ret = elem.style[prop];
@@ -1820,12 +1820,14 @@ new function() {
// Check to see if the W3C box model is being used
jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat";
+ jQuery.styleFloat = jQuery.browser.msie ? "styleFloat" : "cssFloat",
+
jQuery.props = {
"for": "htmlFor",
"class": "className",
- "float": jQuery.browser.msie ? "styleFloat" : "cssFloat",
- cssFloat: jQuery.browser.msie ? "styleFloat" : "cssFloat",
- styleFloat: jQuery.browser.msie ? "styleFloat" : "cssFloat",
+ "float": jQuery.styleFloat,
+ cssFloat: jQuery.styleFloat,
+ styleFloat: jQuery.styleFloat,
innerHTML: "innerHTML",
className: "className",
value: "value",