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 (parent:
2140077
)
Fixed a bug where nothing was passed in to $(), it would bomb out.
author
John Resig
<jeresig@gmail.com>
Thu, 6 Jul 2006 22:09:39 +0000
(22:09 +0000)
committer
John Resig
<jeresig@gmail.com>
Thu, 6 Jul 2006 22:09:39 +0000
(22:09 +0000)
jquery/jquery.js
patch
|
blob
|
history
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
6f1cd8d
..
4ba40ff
100644
(file)
--- a/
jquery/jquery.js
+++ b/
jquery/jquery.js
@@
-17,6
+17,10
@@
window.undefined = window.undefined;
* @constructor
*/
function jQuery(a,c) {
* @constructor
*/
function jQuery(a,c) {
+
+ // Make sure t hat a selection was provided
+ a = a || jQuery.context || document;
+
/*
* Handle support for overriding other $() functions. Way too many libraries
* provide this function to simply ignore it and overwrite it.
/*
* Handle support for overriding other $() functions. Way too many libraries
* provide this function to simply ignore it and overwrite it.
@@
-35,9
+39,6
@@
function jQuery(a,c) {
// Use the default method, in case it works some voodoo
return jQuery._$( a );
// Use the default method, in case it works some voodoo
return jQuery._$( a );
- // Make sure t hat a selection was provided
- a = a || jQuery.context || document;
-
// Watch for when a jQuery object is passed as the selector
if ( a.jquery )
return a;
// Watch for when a jQuery object is passed as the selector
if ( a.jquery )
return a;