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
c8bd6e0a
Commit
c8bd6e0a
authored
Aug 21, 2007
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
You can now assign jQuery to random namespaces - very cool. (Bug #1393)
parent
b6d920cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
intro.js
src/intro.js
+1
-1
jquery.js
src/jquery/jquery.js
+1
-1
No files found.
src/intro.js
View file @
c8bd6e0a
// prevent execution of jQuery if included more than once
// prevent execution of jQuery if included more than once
if
(
typeof
window
.
jQuery
==
"undefined"
)
(
function
(){
if
(
typeof
jQuery
==
"undefined"
)
(
function
(){
src/jquery/jquery.js
View file @
c8bd6e0a
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
* @param jQuery|Element|Array<Element> c context
* @param jQuery|Element|Array<Element> c context
* @cat Core
* @cat Core
*/
*/
window
.
jQuery
=
function
(
a
,
c
)
{
var
jQuery
=
window
.
jQuery
=
function
(
a
,
c
)
{
// If the context is global, return a new object
// If the context is global, return a new object
if
(
window
==
this
||
!
this
.
init
)
if
(
window
==
this
||
!
this
.
init
)
return
new
jQuery
(
a
,
c
);
return
new
jQuery
(
a
,
c
);
...
...
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