aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core.js2
-rw-r--r--src/support.js2
-rw-r--r--test/unit/support.js24
3 files changed, 14 insertions, 14 deletions
diff --git a/src/core.js b/src/core.js
index 70865d3f8..b46698095 100644
--- a/src/core.js
+++ b/src/core.js
@@ -248,7 +248,7 @@ jQuery.extend({
// Support: IE<9
// Handle iteration over inherited properties before own properties.
- if ( support.ownLast ) {
+ if ( !support.ownFirst ) {
for ( key in obj ) {
return hasOwn.call( obj, key );
}
diff --git a/src/support.js b/src/support.js
index cb5386a7b..f04de4952 100644
--- a/src/support.js
+++ b/src/support.js
@@ -12,7 +12,7 @@ var i;
for ( i in jQuery( support ) ) {
break;
}
-support.ownLast = i !== "0";
+support.ownFirst = i === "0";
// Note: most support tests are defined in their respective modules.
diff --git a/test/unit/support.js b/test/unit/support.js
index 03b7d9613..07478e014 100644
--- a/test/unit/support.js
+++ b/test/unit/support.js
@@ -91,7 +91,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": true,
"optSelected": true,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": true,
"pixelPosition": true,
"radioValue": true,
@@ -123,7 +123,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": true,
"optSelected": false,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": true,
"pixelPosition": true,
"radioValue": false,
@@ -155,7 +155,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": true,
"optSelected": false,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": true,
"pixelPosition": true,
"radioValue": false,
@@ -187,7 +187,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": false,
"optDisabled": true,
"optSelected": false,
- "ownLast": true,
+ "ownFirst": false,
"pixelMarginRight": true,
"pixelPosition": false,
"radioValue": false,
@@ -221,7 +221,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": true,
"optSelected": true,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": true,
"pixelPosition": true,
"radioValue": true,
@@ -253,7 +253,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": true,
"optSelected": true,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": true,
"pixelPosition": false,
"radioValue": true,
@@ -285,7 +285,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": true,
"optSelected": true,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": true,
"pixelPosition": false,
"radioValue": true,
@@ -317,7 +317,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": true,
"optSelected": true,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": true,
"pixelPosition": true,
"radioValue": true,
@@ -349,7 +349,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": true,
"optSelected": true,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": true,
"pixelPosition": false,
"radioValue": true,
@@ -381,7 +381,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": true,
"optSelected": true,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": true,
"pixelPosition": false,
"radioValue": true,
@@ -413,7 +413,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": true,
"optSelected": true,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": false,
"pixelPosition": false,
"radioValue": true,
@@ -445,7 +445,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"opacity": true,
"optDisabled": false,
"optSelected": true,
- "ownLast": false,
+ "ownFirst": true,
"pixelMarginRight": true,
"pixelPosition": false,
"radioValue": true,