git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove box global var from offset
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
06d2fd7
..
1236f1c
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-282,7
+282,7
@@
jQuery.fn = jQuery.prototype = {
this.get(),
t.constructor == String ?
jQuery(t).get() :
this.get(),
t.constructor == String ?
jQuery(t).get() :
- t.length != undefined && (!t.nodeName || t.nodeName == "FORM") ?
+ t.length != undefined && (!t.nodeName || jQuery.nodeName(t, "form")) ?
t : [t] )
);
},
t : [t] )
);
},
@@
-363,6
+363,10
@@
jQuery.fn = jQuery.prototype = {
return this.after( val ).remove();
},
return this.after( val ).remove();
},
+ eq: function(i){
+ return this.slice(i, i+1);
+ },
+
slice: function() {
return this.pushStack( Array.prototype.slice.apply( this, arguments ) );
},
slice: function() {
return this.pushStack( Array.prototype.slice.apply( this, arguments ) );
},