git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure that at least one argument is provided to .slice(), in accordance with...
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
b105c4c
..
7281b44
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-128,7
+128,9
@@
jQuery.fn = jQuery.prototype = {
return this.length;
},
- toArray: slice,
+ toArray: function(){
+ return slice.call( this, 0 );
+ },
// Get the Nth element in the matched element set OR
// Get the whole matched element set as a clean array