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
83be3dca
Commit
83be3dca
authored
Jan 04, 2009
by
Ariel Flesler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jquery core: Misc file size optimizations.
parent
ddec4fdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
21 deletions
+19
-21
core.js
src/core.js
+19
-21
No files found.
src/core.js
View file @
83be3dca
...
@@ -9,28 +9,26 @@
...
@@ -9,28 +9,26 @@
* $Rev$
* $Rev$
*/
*/
// Will speed up references to window, and allows munging its name.
var
var
window
=
this
;
// Will speed up references to window, and allows munging its name.
window
=
this
,
// Map over jQuery in case of overwrite
// Will speed up references to undefined, and allows munging its name.
var
_jQuery
=
window
.
jQuery
,
undefined
,
// Map over the $ in case of overwrite
// Map over jQuery in case of overwrite
_$
=
window
.
$
;
_jQuery
=
window
.
jQuery
,
// Map over the $ in case of overwrite
var
jQuery
=
window
.
jQuery
=
window
.
$
=
function
(
selector
,
context
)
{
_$
=
window
.
$
,
// The jQuery object is actually just the init constructor 'enhanced'
return
new
jQuery
.
fn
.
init
(
selector
,
context
);
jQuery
=
window
.
jQuery
=
window
.
$
=
function
(
selector
,
context
)
{
};
// The jQuery object is actually just the init constructor 'enhanced'
return
new
jQuery
.
fn
.
init
(
selector
,
context
);
// A simple way to check for HTML strings or ID strings
},
// (both of which we optimize for)
var
quickExpr
=
/^
[^
<
]
*
(
<
(
.|
\s)
+>
)[^
>
]
*$|^#
([\w
-
]
+
)
$/
,
// Is it a simple selector
isSimple
=
/^.
[^
:#
\[\.
,
]
*$/
,
// Will speed up references to undefined, and allows munging its name.
// A simple way to check for HTML strings or ID strings
undefined
;
// (both of which we optimize for)
quickExpr
=
/^
[^
<
]
*
(
<
(
.|
\s)
+>
)[^
>
]
*$|^#
([\w
-
]
+
)
$/
,
// Is it a simple selector
isSimple
=
/^.
[^
:#
\[\.
,
]
*$/
;
jQuery
.
fn
=
jQuery
.
prototype
=
{
jQuery
.
fn
=
jQuery
.
prototype
=
{
init
:
function
(
selector
,
context
)
{
init
:
function
(
selector
,
context
)
{
...
...
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