git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More unit tests and a $.hasData that works for JS objects too.
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
c11133f
..
346e52d
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-215,7
+215,7
@@
jQuery.fn = jQuery.prototype = {
this.toArray() :
// Return just the object
this.toArray() :
// Return just the object
- ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
+ ( num < 0 ? this[ this.length + num ] : this[ num ] );
},
// Take an array of elements and push it onto the stack
},
// Take an array of elements and push it onto the stack
@@
-532,12
+532,6
@@
jQuery.extend({
},
isEmptyObject: function( obj ) {
},
isEmptyObject: function( obj ) {
-
- // Fixes #7413 Check to see if obj passes isPlainObject
- if ( !jQuery.isPlainObject( obj ) ) {
- return false;
- }
-
for ( var name in obj ) {
return false;
}
for ( var name in obj ) {
return false;
}
@@
-739,6
+733,7
@@
jQuery.extend({
}
}
}
}
+ // Flatten any nested arrays
return ret.concat.apply( [], ret );
},
return ret.concat.apply( [], ret );
},