Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplified some of the IE styleFloat/cssFloat code.

  • Loading branch information...
commit 62ae0eff503e7d1e99873db13efe49f634d176d0 1 parent 21d59e8
@jeresig jeresig authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/jquery/jquery.js
View
10 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",
Please sign in to comment.
Something went wrong with that request. Please try again.