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
4089c7da
Commit
4089c7da
authored
Jul 17, 2014
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build: update front-end dependencies
parent
79c0732a
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
51 deletions
+83
-51
require.js
external/requirejs/require.js
+52
-44
LICENSE.txt
external/sinon/LICENSE.txt
+1
-1
fake_timers.js
external/sinon/fake_timers.js
+26
-2
sizzle.js
external/sizzle/dist/sizzle.js
+3
-3
sizzle.min.js
external/sizzle/dist/sizzle.min.js
+1
-1
No files found.
external/requirejs/require.js
View file @
4089c7da
/** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.1.1
0
Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
* @license RequireJS 2.1.1
4
Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
...
...
@@ -12,7 +12,7 @@ var requirejs, require, define;
(
function
(
global
)
{
var
req
,
s
,
head
,
baseElement
,
dataMain
,
src
,
interactiveScript
,
currentlyAddingScript
,
mainScript
,
subPath
,
version
=
'2.1.1
0
'
,
version
=
'2.1.1
4
'
,
commentRegExp
=
/
(\/\*([\s\S]
*
?)\*\/
|
([^
:
]
|^
)\/\/(
.*
)
$
)
/mg
,
cjsRequireRegExp
=
/
[^
.
]\s
*require
\s
*
\(\s
*
[
"'
]([^
'"
\s]
+
)[
"'
]\s
*
\)
/g
,
jsSuffixRegExp
=
/
\.
js$/
,
...
...
@@ -141,7 +141,7 @@ var requirejs, require, define;
throw
err
;
}
//Allow getting a global that expressed in
//Allow getting a global that
is
expressed in
//dot notation, like 'a.b.c'.
function
getGlobal
(
value
)
{
if
(
!
value
)
{
...
...
@@ -180,7 +180,7 @@ var requirejs, require, define;
if
(
typeof
requirejs
!==
'undefined'
)
{
if
(
isFunction
(
requirejs
))
{
//Do not overwrite an
d
existing requirejs instance.
//Do not overwrite an existing requirejs instance.
return
;
}
cfg
=
requirejs
;
...
...
@@ -232,21 +232,20 @@ var requirejs, require, define;
* @param {Array} ary the array of path segments.
*/
function
trimDots
(
ary
)
{
var
i
,
part
,
length
=
ary
.
length
;
for
(
i
=
0
;
i
<
length
;
i
++
)
{
var
i
,
part
;
for
(
i
=
0
;
i
<
ary
.
length
;
i
++
)
{
part
=
ary
[
i
];
if
(
part
===
'.'
)
{
ary
.
splice
(
i
,
1
);
i
-=
1
;
}
else
if
(
part
===
'..'
)
{
if
(
i
===
1
&&
(
ary
[
2
]
===
'..'
||
ary
[
0
]
===
'..'
))
{
//End of the line. Keep at least one non-dot
//path segment at the front so it can be mapped
//correctly to disk. Otherwise, there is likely
//no path mapping for a path starting with '..'.
//This can still fail, but catches the most reasonable
//uses of ..
break
;
// If at the start, or previous value is still ..,
// keep them so that when converted to a path it may
// still work when converted to a path, even though
// as an ID it is less than ideal. In larger point
// releases, may be better to just kick out an error.
if
(
i
===
0
||
(
i
==
1
&&
ary
[
2
]
===
'..'
)
||
ary
[
i
-
1
]
===
'..'
)
{
continue
;
}
else
if
(
i
>
0
)
{
ary
.
splice
(
i
-
1
,
2
);
i
-=
2
;
...
...
@@ -267,43 +266,37 @@ var requirejs, require, define;
*/
function
normalize
(
name
,
baseName
,
applyMap
)
{
var
pkgMain
,
mapValue
,
nameParts
,
i
,
j
,
nameSegment
,
lastIndex
,
foundMap
,
foundI
,
foundStarMap
,
starI
,
baseParts
=
baseName
&&
baseName
.
split
(
'/'
),
normalizedBaseParts
=
baseParts
,
foundMap
,
foundI
,
foundStarMap
,
starI
,
normalizedBaseParts
,
baseParts
=
(
baseName
&&
baseName
.
split
(
'/'
)),
map
=
config
.
map
,
starMap
=
map
&&
map
[
'*'
];
//Adjust any relative paths.
if
(
name
&&
name
.
charAt
(
0
)
===
'.'
)
{
//If have a base name, try to normalize against it,
//otherwise, assume it is a top-level require that will
//be relative to baseUrl in the end.
if
(
baseName
)
{
if
(
name
)
{
name
=
name
.
split
(
'/'
);
lastIndex
=
name
.
length
-
1
;
// If wanting node ID compatibility, strip .js from end
// of IDs. Have to do this here, and not in nameToUrl
// because node allows either .js or non .js to map
// to same file.
if
(
config
.
nodeIdCompat
&&
jsSuffixRegExp
.
test
(
name
[
lastIndex
]))
{
name
[
lastIndex
]
=
name
[
lastIndex
].
replace
(
jsSuffixRegExp
,
''
);
}
// Starts with a '.' so need the baseName
if
(
name
[
0
].
charAt
(
0
)
===
'.'
&&
baseParts
)
{
//Convert baseName to array, and lop off the last part,
//so that . matches that 'directory' and not name of the baseName's
//module. For instance, baseName of 'one/two/three', maps to
//'one/two/three.js', but we want the directory, 'one/two' for
//this normalization.
normalizedBaseParts
=
baseParts
.
slice
(
0
,
baseParts
.
length
-
1
);
name
=
name
.
split
(
'/'
);
lastIndex
=
name
.
length
-
1
;
// If wanting node ID compatibility, strip .js from end
// of IDs. Have to do this here, and not in nameToUrl
// because node allows either .js or non .js to map
// to same file.
if
(
config
.
nodeIdCompat
&&
jsSuffixRegExp
.
test
(
name
[
lastIndex
]))
{
name
[
lastIndex
]
=
name
[
lastIndex
].
replace
(
jsSuffixRegExp
,
''
);
}
name
=
normalizedBaseParts
.
concat
(
name
);
trimDots
(
name
);
name
=
name
.
join
(
'/'
);
}
else
if
(
name
.
indexOf
(
'./'
)
===
0
)
{
// No baseName, so this is ID is resolved relative
// to baseUrl, pull off the leading dot.
name
=
name
.
substring
(
2
);
}
trimDots
(
name
);
name
=
name
.
join
(
'/'
);
}
//Apply map config if available.
...
...
@@ -379,7 +372,13 @@ var requirejs, require, define;
//retry
pathConfig
.
shift
();
context
.
require
.
undef
(
id
);
context
.
require
([
id
]);
//Custom require that does not do map translation, since
//ID is "absolute", already mapped/resolved.
context
.
makeRequire
(
null
,
{
skipMap
:
true
})([
id
]);
return
true
;
}
}
...
...
@@ -445,7 +444,16 @@ var requirejs, require, define;
return
normalize
(
name
,
parentName
,
applyMap
);
});
}
else
{
normalizedName
=
normalize
(
name
,
parentName
,
applyMap
);
// If nested plugin references, then do not try to
// normalize, as it will not normalize correctly. This
// places a restriction on resourceIds, and the longer
// term solution is not to normalize until plugins are
// loaded and all normalizations to allow for async
// loading of a loader plugin. But for now, fixes the
// common uses. Details in #1131
normalizedName
=
name
.
indexOf
(
'!'
)
===
-
1
?
normalize
(
name
,
parentName
,
applyMap
)
:
name
;
}
}
else
{
//A regular module.
...
...
@@ -567,7 +575,7 @@ var requirejs, require, define;
mod
.
usingExports
=
true
;
if
(
mod
.
map
.
isDefine
)
{
if
(
mod
.
exports
)
{
return
mod
.
exports
;
return
(
defined
[
mod
.
map
.
id
]
=
mod
.
exports
)
;
}
else
{
return
(
mod
.
exports
=
defined
[
mod
.
map
.
id
]
=
{});
}
...
...
@@ -583,7 +591,7 @@ var requirejs, require, define;
config
:
function
()
{
return
getOwn
(
config
.
config
,
mod
.
map
.
id
)
||
{};
},
exports
:
handlers
.
exports
(
mod
)
exports
:
mod
.
exports
||
(
mod
.
exports
=
{}
)
});
}
}
...
...
@@ -1502,7 +1510,7 @@ var requirejs, require, define;
/**
* Called to enable a module if it is still in the registry
* awaiting enablement. A second arg, parent, the parent module,
* is passed in for context, when this method is overriden by
* is passed in for context, when this method is overrid
d
en by
* the optimizer. Not shown here to keep code compact.
*/
enable
:
function
(
depMap
)
{
...
...
external/sinon/LICENSE.txt
View file @
4089c7da
(The BSD License)
Copyright (c) 2010-201
3
, Christian Johansen, christian@cjohansen.no
Copyright (c) 2010-201
4
, Christian Johansen, christian@cjohansen.no
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
...
...
external/sinon/fake_timers.js
View file @
4089c7da
...
...
@@ -24,6 +24,13 @@ if (typeof sinon == "undefined") {
}
(
function
(
global
)
{
// node expects setTimeout/setInterval to return a fn object w/ .ref()/.unref()
// browsers, a number.
// see https://github.com/cjohansen/Sinon.JS/pull/436
var
timeoutResult
=
setTimeout
(
function
()
{},
0
);
var
addTimerReturnsObject
=
typeof
timeoutResult
===
'object'
;
clearTimeout
(
timeoutResult
);
var
id
=
1
;
function
addTimer
(
args
,
recurring
)
{
...
...
@@ -53,7 +60,16 @@ if (typeof sinon == "undefined") {
this
.
timeouts
[
toId
].
interval
=
delay
;
}
return
toId
;
if
(
addTimerReturnsObject
)
{
return
{
id
:
toId
,
ref
:
function
()
{},
unref
:
function
()
{}
};
}
else
{
return
toId
;
}
}
function
parseTime
(
str
)
{
...
...
@@ -119,10 +135,18 @@ if (typeof sinon == "undefined") {
},
clearTimeout
:
function
clearTimeout
(
timerId
)
{
if
(
!
timerId
)
{
// null appears to be allowed in most browsers, and appears to be relied upon by some libraries, like Bootstrap carousel
return
;
}
if
(
!
this
.
timeouts
)
{
this
.
timeouts
=
[];
}
// in Node, timerId is an object with .ref()/.unref(), and
// its .id field is the actual timer id.
if
(
typeof
timerId
===
'object'
)
{
timerId
=
timerId
.
id
}
if
(
timerId
in
this
.
timeouts
)
{
delete
this
.
timeouts
[
timerId
];
}
...
...
external/sizzle/dist/sizzle.js
View file @
4089c7da
/*!
* Sizzle CSS Selector Engine v
1.11.1
* Sizzle CSS Selector Engine v
2.0.0
* http://sizzlejs.com/
*
* Copyright 20
13
jQuery Foundation, Inc. and other contributors
* Copyright 20
08, 2014
jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-0
6-25
* Date: 2014-0
7-01
*/
(
function
(
window
)
{
...
...
external/sizzle/dist/sizzle.min.js
View file @
4089c7da
This diff is collapsed.
Click to expand it.
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