Simplified some of the IE styleFloat/cssFloat code.
This commit is contained in:
parent
21d59e8de6
commit
62ae0eff50
10
src/jquery/jquery.js
vendored
10
src/jquery/jquery.js
vendored
|
@ -1443,7 +1443,7 @@ jQuery.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prop.match(/float/i))
|
if (prop.match(/float/i))
|
||||||
prop = jQuery.browser.msie ? "styleFloat" : "cssFloat";
|
prop = jQuery.styleFloat;
|
||||||
|
|
||||||
if (!force && elem.style[prop])
|
if (!force && elem.style[prop])
|
||||||
ret = elem.style[prop];
|
ret = elem.style[prop];
|
||||||
|
@ -1820,12 +1820,14 @@ new function() {
|
||||||
// Check to see if the W3C box model is being used
|
// Check to see if the W3C box model is being used
|
||||||
jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat";
|
jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat";
|
||||||
|
|
||||||
|
jQuery.styleFloat = jQuery.browser.msie ? "styleFloat" : "cssFloat",
|
||||||
|
|
||||||
jQuery.props = {
|
jQuery.props = {
|
||||||
"for": "htmlFor",
|
"for": "htmlFor",
|
||||||
"class": "className",
|
"class": "className",
|
||||||
"float": jQuery.browser.msie ? "styleFloat" : "cssFloat",
|
"float": jQuery.styleFloat,
|
||||||
cssFloat: jQuery.browser.msie ? "styleFloat" : "cssFloat",
|
cssFloat: jQuery.styleFloat,
|
||||||
styleFloat: jQuery.browser.msie ? "styleFloat" : "cssFloat",
|
styleFloat: jQuery.styleFloat,
|
||||||
innerHTML: "innerHTML",
|
innerHTML: "innerHTML",
|
||||||
className: "className",
|
className: "className",
|
||||||
value: "value",
|
value: "value",
|
||||||
|
|
Loading…
Reference in a new issue