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
2585ee58
Commit
2585ee58
authored
Jan 09, 2014
by
S. Andrew Sheppard
Committed by
Dave Methvin
Mar 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AMD: Note on AMD best practices
Fixes #14687 Closes gh-1478
parent
854d242d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
AUTHORS.txt
AUTHORS.txt
+1
-0
amd.js
src/exports/amd.js
+6
-0
No files found.
AUTHORS.txt
View file @
2585ee58
...
@@ -215,3 +215,4 @@ John Paul <john@johnkpaul.com>
...
@@ -215,3 +215,4 @@ John Paul <john@johnkpaul.com>
Jakob Stoeck <jakob@pokermania.de>
Jakob Stoeck <jakob@pokermania.de>
Christopher Jones <chris@cjqed.com>
Christopher Jones <chris@cjqed.com>
Forbes Lindesay <forbes@lindesay.co.uk>
Forbes Lindesay <forbes@lindesay.co.uk>
S. Andrew Sheppard <andrew@wq.io>
src/exports/amd.js
View file @
2585ee58
...
@@ -9,6 +9,12 @@ define([
...
@@ -9,6 +9,12 @@ define([
// derived from file names, and jQuery is normally delivered in a lowercase
// derived from file names, and jQuery is normally delivered in a lowercase
// file name. Do this after creating the global so that if an AMD module wants
// file name. Do this after creating the global so that if an AMD module wants
// to call noConflict to hide this version of jQuery, it will work.
// to call noConflict to hide this version of jQuery, it will work.
// Note that for maximum portability, libraries that are not jQuery should
// declare themselves as anonymous modules, and avoid setting a global if an
// AMD loader is present. jQuery is a special case. For more information, see
// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
if
(
typeof
define
===
"function"
&&
define
.
amd
)
{
if
(
typeof
define
===
"function"
&&
define
.
amd
)
{
define
(
"jquery"
,
[],
function
()
{
define
(
"jquery"
,
[],
function
()
{
return
jQuery
;
return
jQuery
;
...
...
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