git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add clearQueue for clearing non-fx queues
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
78f48d7
..
cab3b54
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-72,10
+72,13
@@
jQuery.fn = jQuery.prototype = {
}
// Otherwise, we inject the element directly into the jQuery object
}
// Otherwise, we inject the element directly into the jQuery object
- ret = jQuery( elem || null );
- ret.context = document;
- ret.selector = selector;
- return ret;
+ this.length = elem ? 1 : 0;
+ if ( elem ) {
+ this[0] = elem;
+ }
+ this.context = document;
+ this.selector = selector;
+ return this;
}
// HANDLE: $(expr, $(...))
}
// HANDLE: $(expr, $(...))