mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 05:35:21 -05:00
Core: Change support.ownLast to support.ownFirst
jQuery.support.ownLast was the only support test that was supposed to be false when it succeeded. It was confusing. Fixes gh-2406 Closes gh-2408
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user