git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2b481b9
)
Switched to using slice instead of join to get the correct results.
author
jeresig
<jeresig@gmail.com>
Fri, 4 Dec 2009 17:36:24 +0000
(12:36 -0500)
committer
jeresig
<jeresig@gmail.com>
Fri, 4 Dec 2009 17:36:24 +0000
(12:36 -0500)
src/traversing.js
patch
|
blob
|
history
diff --git
a/src/traversing.js
b/src/traversing.js
index
4efe282
..
57621a3
100644
(file)
--- a/
src/traversing.js
+++ b/
src/traversing.js
@@
-2,8
+2,7
@@
var runtil = /Until$/,
rparentsprev = /^(?:parents|prevUntil|prevAll)/,
// Note: This RegExp should be improved, or likely pulled from Sizzle
rmultiselector = /,/,
rparentsprev = /^(?:parents|prevUntil|prevAll)/,
// Note: This RegExp should be improved, or likely pulled from Sizzle
rmultiselector = /,/,
- slice = Array.prototype.slice,
- join = Array.prototype.join;
+ slice = Array.prototype.slice;
// Implement the identical functionality for filter and not
var winnow = function( elements, qualifier, keep ) {
// Implement the identical functionality for filter and not
var winnow = function( elements, qualifier, keep ) {
@@
-138,7
+137,7
@@
jQuery.fn.extend({
slice: function() {
return this.pushStack( slice.apply( this, arguments ),
slice: function() {
return this.pushStack( slice.apply( this, arguments ),
- "slice", join.call(arguments, ",") );
+ "slice", slice.call(arguments).join(",") );
},
map: function( callback ) {
},
map: function( callback ) {
@@
-187,7
+186,7
@@
jQuery.each({
ret = ret.reverse();
}
ret = ret.reverse();
}
- return this.pushStack( ret, name, join.call(arguments, ",") );
+ return this.pushStack( ret, name, slice.call(arguments).join(",") );
};
});
};
});