FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
select2/src/js/wrapper.start.js at develop · juCodeHome/select2 · GitHub
juCodeHome
/
select2
Public
forked from
select2/select2
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
select2
/
src
/
js
/
wrapper.start.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (38 loc) · 1.22 KB
Breadcrumbs
select2
/
src
/
js
/
wrapper.start.js
Copy path
File metadata and controls
38 lines (38 loc) · 1.22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*!
* Select2 <%= package.version %>
* https://select2.github.io
*
* Released under the MIT license
* https://github.com/select2/select2/blob/master/LICENSE.md
*/
;
(
function
(
factory
)
{
if
(
typeof
define
===
'function'
&&
define
.
amd
)
{
// AMD. Register as an anonymous module.
define
(
[
'jquery'
]
,
factory
)
;
}
else
if
(
typeof
module
===
'object'
&&
module
.
exports
)
{
// Node/CommonJS
module
.
exports
=
function
(
root
,
jQuery
)
{
if
(
jQuery
===
undefined
)
{
// require('jQuery') returns a factory that requires window to
// build a jQuery instance, we normalize how we use modules
// that require this pattern but the window provided is a noop
// if it's defined (how jquery works)
if
(
typeof
window
!==
'undefined'
)
{
jQuery
=
require
(
'jquery'
)
;
}
else
{
jQuery
=
require
(
'jquery'
)
(
root
)
;
}
}
factory
(
jQuery
)
;
return
jQuery
;
}
;
}
else
{
// Browser globals
factory
(
jQuery
)
;
}
}
(
function
(
jQuery
)
{
// This is needed so we can catch the AMD loader configuration and use it
// The inner file should be wrapped (by `banner.start.js`) in a function that
// returns the AMD loader references.
var
S2
=
Back
|
FazBrowse Home
|
New Git URL