aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-05-18 12:40:10 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-05-18 12:59:31 -0400
commit0a2f93e6df6078072e0b574c368dea9bf1682476 (patch)
tree80393f961694e83babd679014a80ec759eb3e36b /src/support.js
parentd12e9b289e65f839da13986f9451e23274f784f1 (diff)
downloadjquery-0a2f93e6df6078072e0b574c368dea9bf1682476.tar.gz
jquery-0a2f93e6df6078072e0b574c368dea9bf1682476.zip
Inline the boxModel test, and correct unit test. Closes gh-781.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/support.js b/src/support.js
index 61acce40d..8ed47219d 100644
--- a/src/support.js
+++ b/src/support.js
@@ -82,6 +82,9 @@ jQuery.support = (function() {
// Where outerHTML is undefined, this still works
html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
+ // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
+ boxModel: (document.compatMode === "CSS1Compat"),
+
// Will be defined later
submitBubbles: true,
changeBubbles: true,
@@ -95,9 +98,6 @@ jQuery.support = (function() {
boxSizingReliable: true
};
- // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
- support.boxModel = (document.compatMode === "CSS1Compat");
-
// Make sure checked status is properly cloned
input.checked = true;
support.noCloneChecked = input.cloneNode( true ).checked;