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
1c313841
Commit
1c313841
authored
Jun 25, 2014
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build: update Sizzle to 1.11.1 and include license
parent
72e61925
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
35 deletions
+45
-35
Gruntfile.js
Gruntfile.js
+1
-0
bower.json
bower.json
+1
-1
MIT-LICENSE.txt
external/sizzle/MIT-LICENSE.txt
+21
-0
sizzle.js
external/sizzle/dist/sizzle.js
+18
-30
sizzle.min.js
external/sizzle/dist/sizzle.min.js
+3
-3
sizzle.min.map
external/sizzle/dist/sizzle.min.map
+1
-1
No files found.
Gruntfile.js
View file @
1c313841
...
@@ -52,6 +52,7 @@ module.exports = function( grunt ) {
...
@@ -52,6 +52,7 @@ module.exports = function( grunt ) {
},
},
files
:
{
files
:
{
"sizzle/dist"
:
"sizzle/dist"
,
"sizzle/dist"
:
"sizzle/dist"
,
"sizzle/MIT-LICENSE.txt"
:
"sizzle/MIT-LICENSE.txt"
,
"qunit/qunit.js"
:
"qunit/qunit/qunit.js"
,
"qunit/qunit.js"
:
"qunit/qunit/qunit.js"
,
"qunit/qunit.css"
:
"qunit/qunit/qunit.css"
,
"qunit/qunit.css"
:
"qunit/qunit/qunit.css"
,
...
...
bower.json
View file @
1c313841
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
"package.json"
"package.json"
],
],
"devDependencies"
:
{
"devDependencies"
:
{
"sizzle"
:
"1.1
0.19
"
,
"sizzle"
:
"1.1
1.1
"
,
"requirejs"
:
"2.1.10"
,
"requirejs"
:
"2.1.10"
,
"qunit"
:
"1.14.0"
,
"qunit"
:
"1.14.0"
,
"sinon"
:
"1.8.1"
"sinon"
:
"1.8.1"
...
...
external/sizzle/MIT-LICENSE.txt
0 → 100644
View file @
1c313841
Copyright 2013 jQuery Foundation and other contributors
http://jquery.com/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
external/sizzle/dist/sizzle.js
View file @
1c313841
/*!
/*!
* Sizzle CSS Selector Engine v1.1
0.19
* Sizzle CSS Selector Engine v1.1
1.1
* http://sizzlejs.com/
* http://sizzlejs.com/
*
*
* Copyright 2013 jQuery Foundation, Inc. and other contributors
* Copyright 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* Released under the MIT license
* http://jquery.org/license
* http://jquery.org/license
*
*
* Date: 2014-0
4-18
* Date: 2014-0
6-25
*/
*/
(
function
(
window
)
{
(
function
(
window
)
{
...
@@ -74,25 +74,21 @@ var i,
...
@@ -74,25 +74,21 @@ var i,
// Regular expressions
// Regular expressions
//
Whitespace characters
http://www.w3.org/TR/css3-selectors/#whitespace
// http://www.w3.org/TR/css3-selectors/#whitespace
whitespace
=
"[
\\
x20
\\
t
\\
r
\
\n
\\
f]"
,
whitespace
=
"[
\\
x20
\\
t
\\
r
\
\n
\\
f]"
,
// http://www.w3.org/TR/css3-syntax/#characters
characterEncoding
=
"(?:
\\\\
.|[
\\
w-]|[^
\\
x00-
\\
xa0])+"
,
// Loosely modeled on CSS identifier characters
// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
identifier
=
"(?:
\\\\
.|[
\\
w-]|[^
\\
x00-
\\
xa0])+"
,
// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
identifier
=
characterEncoding
.
replace
(
"w"
,
"w#"
),
// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
attributes
=
"
\\
["
+
whitespace
+
"*("
+
characterEncoding
+
")(?:"
+
whitespace
+
attributes
=
"
\\
["
+
whitespace
+
"*("
+
identifier
+
")(?:"
+
whitespace
+
// Operator (capture 2)
// Operator (capture 2)
"*([*^$|!~]?=)"
+
whitespace
+
"*([*^$|!~]?=)"
+
whitespace
+
// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
"*(?:'((?:
\\\\
.|[^
\\\\
'])*)'|
\"
((?:
\\\\
.|[^
\\\\
\"
])*)
\"
|("
+
identifier
+
"))|)"
+
whitespace
+
"*(?:'((?:
\\\\
.|[^
\\\\
'])*)'|
\"
((?:
\\\\
.|[^
\\\\
\"
])*)
\"
|("
+
identifier
+
"))|)"
+
whitespace
+
"*
\\
]"
,
"*
\\
]"
,
pseudos
=
":("
+
characterEncoding
+
")(?:
\\
(("
+
pseudos
=
":("
+
identifier
+
")(?:
\\
(("
+
// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
// 1. quoted (capture 3; capture 4 or capture 5)
// 1. quoted (capture 3; capture 4 or capture 5)
"('((?:
\\\\
.|[^
\\\\
'])*)'|
\"
((?:
\\\\
.|[^
\\\\
\"
])*)
\"
)|"
+
"('((?:
\\\\
.|[^
\\\\
'])*)'|
\"
((?:
\\\\
.|[^
\\\\
\"
])*)
\"
)|"
+
...
@@ -114,9 +110,9 @@ var i,
...
@@ -114,9 +110,9 @@ var i,
ridentifier
=
new
RegExp
(
"^"
+
identifier
+
"$"
),
ridentifier
=
new
RegExp
(
"^"
+
identifier
+
"$"
),
matchExpr
=
{
matchExpr
=
{
"ID"
:
new
RegExp
(
"^#("
+
characterEncoding
+
")"
),
"ID"
:
new
RegExp
(
"^#("
+
identifier
+
")"
),
"CLASS"
:
new
RegExp
(
"^
\\
.("
+
characterEncoding
+
")"
),
"CLASS"
:
new
RegExp
(
"^
\\
.("
+
identifier
+
")"
),
"TAG"
:
new
RegExp
(
"^("
+
characterEncoding
.
replace
(
"w"
,
"w*"
)
+
"
)"
),
"TAG"
:
new
RegExp
(
"^("
+
identifier
+
"|[*]
)"
),
"ATTR"
:
new
RegExp
(
"^"
+
attributes
),
"ATTR"
:
new
RegExp
(
"^"
+
attributes
),
"PSEUDO"
:
new
RegExp
(
"^"
+
pseudos
),
"PSEUDO"
:
new
RegExp
(
"^"
+
pseudos
),
"CHILD"
:
new
RegExp
(
"^:(only|first|last|nth|nth-last)-(child|of-type)(?:
\\
("
+
whitespace
+
"CHILD"
:
new
RegExp
(
"^:(only|first|last|nth|nth-last)-(child|of-type)(?:
\\
("
+
whitespace
+
...
@@ -240,7 +236,7 @@ function Sizzle( selector, context, results, seed ) {
...
@@ -240,7 +236,7 @@ function Sizzle( selector, context, results, seed ) {
return
results
;
return
results
;
// Speed-up: Sizzle(".CLASS")
// Speed-up: Sizzle(".CLASS")
}
else
if
(
(
m
=
match
[
3
])
&&
support
.
getElementsByClassName
&&
context
.
getElementsByClassName
)
{
}
else
if
(
(
m
=
match
[
3
])
&&
support
.
getElementsByClassName
)
{
push
.
apply
(
results
,
context
.
getElementsByClassName
(
m
)
);
push
.
apply
(
results
,
context
.
getElementsByClassName
(
m
)
);
return
results
;
return
results
;
}
}
...
@@ -513,17 +509,8 @@ setDocument = Sizzle.setDocument = function( node ) {
...
@@ -513,17 +509,8 @@ setDocument = Sizzle.setDocument = function( node ) {
return
!
div
.
getElementsByTagName
(
"*"
).
length
;
return
!
div
.
getElementsByTagName
(
"*"
).
length
;
});
});
// Check if getElementsByClassName can be trusted
// Support: IE<9
support
.
getElementsByClassName
=
rnative
.
test
(
doc
.
getElementsByClassName
)
&&
assert
(
function
(
div
)
{
support
.
getElementsByClassName
=
rnative
.
test
(
doc
.
getElementsByClassName
);
div
.
innerHTML
=
"<div class='a'></div><div class='a i'></div>"
;
// Support: Safari<4
// Catch class over-caching
div
.
firstChild
.
className
=
"i"
;
// Support: Opera<10
// Catch gEBCN failure to find non-leading classes
return
div
.
getElementsByClassName
(
"i"
).
length
===
2
;
});
// Support: IE<10
// Support: IE<10
// Check if getElementById returns elements by name
// Check if getElementById returns elements by name
...
@@ -592,7 +579,7 @@ setDocument = Sizzle.setDocument = function( node ) {
...
@@ -592,7 +579,7 @@ setDocument = Sizzle.setDocument = function( node ) {
// Class
// Class
Expr
.
find
[
"CLASS"
]
=
support
.
getElementsByClassName
&&
function
(
className
,
context
)
{
Expr
.
find
[
"CLASS"
]
=
support
.
getElementsByClassName
&&
function
(
className
,
context
)
{
if
(
typeof
context
.
getElementsByClassName
!==
strundefined
&&
documentIsHTML
)
{
if
(
documentIsHTML
)
{
return
context
.
getElementsByClassName
(
className
);
return
context
.
getElementsByClassName
(
className
);
}
}
};
};
...
@@ -621,13 +608,13 @@ setDocument = Sizzle.setDocument = function( node ) {
...
@@ -621,13 +608,13 @@ setDocument = Sizzle.setDocument = function( node ) {
// setting a boolean content attribute,
// setting a boolean content attribute,
// since its presence should be enough
// since its presence should be enough
// http://bugs.jquery.com/ticket/12359
// http://bugs.jquery.com/ticket/12359
div
.
innerHTML
=
"<select msallowc
lip
=''><option selected=''></option></select>"
;
div
.
innerHTML
=
"<select msallowc
apture
=''><option selected=''></option></select>"
;
// Support: IE8, Opera 11-12.16
// Support: IE8, Opera 11-12.16
// Nothing should be selected when empty strings follow ^= or $= or *=
// Nothing should be selected when empty strings follow ^= or $= or *=
// The test attribute must be unknown in Opera but "safe" for WinRT
// The test attribute must be unknown in Opera but "safe" for WinRT
// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
if
(
div
.
querySelectorAll
(
"[msallowc
lip
^='']"
).
length
)
{
if
(
div
.
querySelectorAll
(
"[msallowc
apture
^='']"
).
length
)
{
rbuggyQSA
.
push
(
"[*^$]="
+
whitespace
+
"*(?:''|
\"\"
)"
);
rbuggyQSA
.
push
(
"[*^$]="
+
whitespace
+
"*(?:''|
\"\"
)"
);
}
}
...
@@ -1260,6 +1247,7 @@ Expr = Sizzle.selectors = {
...
@@ -1260,6 +1247,7 @@ Expr = Sizzle.selectors = {
}),
}),
"contains"
:
markFunction
(
function
(
text
)
{
"contains"
:
markFunction
(
function
(
text
)
{
text
=
text
.
replace
(
runescape
,
funescape
);
return
function
(
elem
)
{
return
function
(
elem
)
{
return
(
elem
.
textContent
||
elem
.
innerText
||
getText
(
elem
)
).
indexOf
(
text
)
>
-
1
;
return
(
elem
.
textContent
||
elem
.
innerText
||
getText
(
elem
)
).
indexOf
(
text
)
>
-
1
;
};
};
...
@@ -1972,7 +1960,7 @@ select = Sizzle.select = function( selector, context, results, seed ) {
...
@@ -1972,7 +1960,7 @@ select = Sizzle.select = function( selector, context, results, seed ) {
// Sort stability
// Sort stability
support
.
sortStable
=
expando
.
split
(
""
).
sort
(
sortOrder
).
join
(
""
)
===
expando
;
support
.
sortStable
=
expando
.
split
(
""
).
sort
(
sortOrder
).
join
(
""
)
===
expando
;
// Support: Chrome
<14
// Support: Chrome
14-35+
// Always assume duplicates if they aren't passed to the comparison function
// Always assume duplicates if they aren't passed to the comparison function
support
.
detectDuplicates
=
!!
hasDuplicate
;
support
.
detectDuplicates
=
!!
hasDuplicate
;
...
...
external/sizzle/dist/sizzle.min.js
View file @
1c313841
This diff is collapsed.
Click to expand it.
external/sizzle/dist/sizzle.min.map
View file @
1c313841
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