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
16d996ba
Commit
16d996ba
authored
Oct 17, 2012
by
Mike Sherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no ticket: remove and enforce unused vars in jshint
parent
3bfd1587
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
14 deletions
+11
-14
.jshintrc
src/.jshintrc
+1
-0
core.js
src/core.js
+1
-1
css.js
src/css.js
+2
-4
effects.js
src/effects.js
+1
-2
event.js
src/event.js
+2
-3
manipulation.js
src/manipulation.js
+1
-1
serialize.js
src/serialize.js
+1
-1
traversing.js
src/traversing.js
+2
-2
No files found.
src/.jshintrc
View file @
16d996ba
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
"sub": true,
"sub": true,
"trailing": true,
"trailing": true,
"undef": true,
"undef": true,
"unused": true,
"wsh": true
"wsh": true
},
},
"globals": {
"globals": {
...
...
src/core.js
View file @
16d996ba
...
@@ -81,7 +81,7 @@ var
...
@@ -81,7 +81,7 @@ var
jQuery
.
fn
=
jQuery
.
prototype
=
{
jQuery
.
fn
=
jQuery
.
prototype
=
{
constructor
:
jQuery
,
constructor
:
jQuery
,
init
:
function
(
selector
,
context
,
rootjQuery
)
{
init
:
function
(
selector
,
context
,
rootjQuery
)
{
var
match
,
elem
,
ret
,
doc
;
var
match
,
elem
,
doc
;
// Handle $(""), $(null), $(undefined), $(false)
// Handle $(""), $(null), $(undefined), $(false)
if
(
!
selector
)
{
if
(
!
selector
)
{
...
...
src/css.js
View file @
16d996ba
...
@@ -18,9 +18,7 @@ var curCSS, iframe, iframeDoc,
...
@@ -18,9 +18,7 @@ var curCSS, iframe, iframeDoc,
},
},
cssExpand
=
[
"Top"
,
"Right"
,
"Bottom"
,
"Left"
],
cssExpand
=
[
"Top"
,
"Right"
,
"Bottom"
,
"Left"
],
cssPrefixes
=
[
"Webkit"
,
"O"
,
"Moz"
,
"ms"
],
cssPrefixes
=
[
"Webkit"
,
"O"
,
"Moz"
,
"ms"
];
eventsToggle
=
jQuery
.
fn
.
toggle
;
// return a css property mapped to a potentially vendor prefixed property
// return a css property mapped to a potentially vendor prefixed property
function
vendorPropName
(
style
,
name
)
{
function
vendorPropName
(
style
,
name
)
{
...
@@ -113,7 +111,7 @@ jQuery.fn.extend({
...
@@ -113,7 +111,7 @@ jQuery.fn.extend({
hide
:
function
()
{
hide
:
function
()
{
return
showHide
(
this
);
return
showHide
(
this
);
},
},
toggle
:
function
(
state
,
fn2
)
{
toggle
:
function
(
state
)
{
var
bool
=
typeof
state
===
"boolean"
;
var
bool
=
typeof
state
===
"boolean"
;
return
this
.
each
(
function
()
{
return
this
.
each
(
function
()
{
...
...
src/effects.js
View file @
16d996ba
...
@@ -73,7 +73,6 @@ function createTweens( animation, props ) {
...
@@ -73,7 +73,6 @@ function createTweens( animation, props ) {
function
Animation
(
elem
,
properties
,
options
)
{
function
Animation
(
elem
,
properties
,
options
)
{
var
result
,
var
result
,
index
=
0
,
index
=
0
,
tweenerIndex
=
0
,
length
=
animationPrefilters
.
length
,
length
=
animationPrefilters
.
length
,
deferred
=
jQuery
.
Deferred
().
always
(
function
()
{
deferred
=
jQuery
.
Deferred
().
always
(
function
()
{
// don't match elem in the :animated selector
// don't match elem in the :animated selector
...
@@ -108,7 +107,7 @@ function Animation( elem, properties, options ) {
...
@@ -108,7 +107,7 @@ function Animation( elem, properties, options ) {
startTime
:
fxNow
||
createFxNow
(),
startTime
:
fxNow
||
createFxNow
(),
duration
:
options
.
duration
,
duration
:
options
.
duration
,
tweens
:
[],
tweens
:
[],
createTween
:
function
(
prop
,
end
,
easing
)
{
createTween
:
function
(
prop
,
end
)
{
var
tween
=
jQuery
.
Tween
(
elem
,
animation
.
opts
,
prop
,
end
,
var
tween
=
jQuery
.
Tween
(
elem
,
animation
.
opts
,
prop
,
end
,
animation
.
opts
.
specialEasing
[
prop
]
||
animation
.
opts
.
easing
);
animation
.
opts
.
specialEasing
[
prop
]
||
animation
.
opts
.
easing
);
animation
.
tweens
.
push
(
tween
);
animation
.
tweens
.
push
(
tween
);
...
...
src/event.js
View file @
16d996ba
...
@@ -357,7 +357,7 @@ jQuery.event = {
...
@@ -357,7 +357,7 @@ jQuery.event = {
// Make a writable jQuery.Event from the native event object
// Make a writable jQuery.Event from the native event object
event
=
jQuery
.
event
.
fix
(
event
||
window
.
event
);
event
=
jQuery
.
event
.
fix
(
event
||
window
.
event
);
var
i
,
j
,
cur
,
ret
,
selMatch
,
matched
,
matches
,
handleObj
,
sel
,
related
,
var
i
,
j
,
cur
,
ret
,
selMatch
,
matched
,
matches
,
handleObj
,
sel
,
handlers
=
(
(
jQuery
.
_data
(
this
,
"events"
)
||
{}
)[
event
.
type
]
||
[]),
handlers
=
(
(
jQuery
.
_data
(
this
,
"events"
)
||
{}
)[
event
.
type
]
||
[]),
delegateCount
=
handlers
.
delegateCount
,
delegateCount
=
handlers
.
delegateCount
,
args
=
core_slice
.
call
(
arguments
),
args
=
core_slice
.
call
(
arguments
),
...
@@ -704,8 +704,7 @@ jQuery.each({
...
@@ -704,8 +704,7 @@ jQuery.each({
var
ret
,
var
ret
,
target
=
this
,
target
=
this
,
related
=
event
.
relatedTarget
,
related
=
event
.
relatedTarget
,
handleObj
=
event
.
handleObj
,
handleObj
=
event
.
handleObj
;
selector
=
handleObj
.
selector
;
// For mousenter/leave call the handler if related is outside the target.
// For mousenter/leave call the handler if related is outside the target.
// NB: No relatedTarget if the mouse left/entered the browser window
// NB: No relatedTarget if the mouse left/entered the browser window
...
...
src/manipulation.js
View file @
16d996ba
...
@@ -650,7 +650,7 @@ jQuery.extend({
...
@@ -650,7 +650,7 @@ jQuery.extend({
},
},
clean
:
function
(
elems
,
context
,
fragment
,
scripts
)
{
clean
:
function
(
elems
,
context
,
fragment
,
scripts
)
{
var
i
,
j
,
elem
,
tag
,
wrap
,
depth
,
div
,
hasBody
,
tbody
,
len
,
handleScript
,
jsTags
,
var
i
,
j
,
elem
,
tag
,
wrap
,
depth
,
div
,
hasBody
,
tbody
,
handleScript
,
jsTags
,
safe
=
context
===
document
&&
safeFragment
,
safe
=
context
===
document
&&
safeFragment
,
ret
=
[];
ret
=
[];
...
...
src/serialize.js
View file @
16d996ba
...
@@ -23,7 +23,7 @@ jQuery.fn.extend({
...
@@ -23,7 +23,7 @@ jQuery.fn.extend({
return
val
==
null
?
return
val
==
null
?
null
:
null
:
jQuery
.
isArray
(
val
)
?
jQuery
.
isArray
(
val
)
?
jQuery
.
map
(
val
,
function
(
val
,
i
){
jQuery
.
map
(
val
,
function
(
val
){
return
{
name
:
elem
.
name
,
value
:
val
.
replace
(
rCRLF
,
"
\
r
\n
"
)
};
return
{
name
:
elem
.
name
,
value
:
val
.
replace
(
rCRLF
,
"
\
r
\n
"
)
};
})
:
})
:
{
name
:
elem
.
name
,
value
:
val
.
replace
(
rCRLF
,
"
\
r
\n
"
)
};
{
name
:
elem
.
name
,
value
:
val
.
replace
(
rCRLF
,
"
\
r
\n
"
)
};
...
...
src/traversing.js
View file @
16d996ba
...
@@ -271,7 +271,7 @@ function winnow( elements, qualifier, keep ) {
...
@@ -271,7 +271,7 @@ function winnow( elements, qualifier, keep ) {
});
});
}
else
if
(
qualifier
.
nodeType
)
{
}
else
if
(
qualifier
.
nodeType
)
{
return
jQuery
.
grep
(
elements
,
function
(
elem
,
i
)
{
return
jQuery
.
grep
(
elements
,
function
(
elem
)
{
return
(
elem
===
qualifier
)
===
keep
;
return
(
elem
===
qualifier
)
===
keep
;
});
});
...
@@ -287,7 +287,7 @@ function winnow( elements, qualifier, keep ) {
...
@@ -287,7 +287,7 @@ function winnow( elements, qualifier, keep ) {
}
}
}
}
return
jQuery
.
grep
(
elements
,
function
(
elem
,
i
)
{
return
jQuery
.
grep
(
elements
,
function
(
elem
)
{
return
(
jQuery
.
inArray
(
elem
,
qualifier
)
>=
0
)
===
keep
;
return
(
jQuery
.
inArray
(
elem
,
qualifier
)
>=
0
)
===
keep
;
});
});
}
}
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