Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
9ebc27db
Commit
9ebc27db
authored
Apr 18, 2012
by
Dave Methvin
Committed by
Rick Waldron waldron.rick@gmail.com
Apr 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove $("body") case; $(document.body) is 2x faster.
parent
abd2a074
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
core.js
src/core.js
+0
-9
sizzle
src/sizzle
+1
-1
No files found.
src/core.js
View file @
9ebc27db
...
...
@@ -90,15 +90,6 @@ jQuery.fn = jQuery.prototype = {
return
this
;
}
// The body element only exists once, optimize finding it
if
(
selector
===
"body"
&&
!
context
&&
document
.
body
)
{
this
.
context
=
document
;
this
[
0
]
=
document
.
body
;
this
.
selector
=
selector
;
this
.
length
=
1
;
return
this
;
}
// Handle HTML strings
if
(
typeof
selector
===
"string"
)
{
// Are we dealing with HTML string or an ID?
...
...
sizzle
@
feebbd7e
Subproject commit
912a8218c36f6136d694a0915eb92bdf3e7b5e41
Subproject commit
feebbd7e053bff426444c7b348c776c99c7490ee
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment