git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unit tests for setting cellspacing, rowspan, and colspan
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
86c9982
..
23b4a57
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-18,7
+18,7
@@
var window = this,
jQuery = window.jQuery = window.$ = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
jQuery = window.jQuery = window.$ = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
- return selector === undefined ?
+ return arguments.length === 0 ?
rootjQuery :
new jQuery.fn.init( selector, context );
},
rootjQuery :
new jQuery.fn.init( selector, context );
},
@@
-36,12
+36,6
@@
var window = this,
// Save a reference to the core toString method
toString = Object.prototype.toString;
// Save a reference to the core toString method
toString = Object.prototype.toString;
-// Define the main jQuery method
-jQuery = window.jQuery = window.$ = function( selector, context ) {
- // The jQuery object is actually just the init constructor 'enhanced'
- return new jQuery.fn.init( selector, context );
-};
-
jQuery.fn = jQuery.prototype = {
init: function( selector, context ) {
var match, elem, ret;
jQuery.fn = jQuery.prototype = {
init: function( selector, context ) {
var match, elem, ret;