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
b8d0d54a
Commit
b8d0d54a
authored
Nov 06, 2013
by
Chris Antaki
Committed by
Richard Gibson
Dec 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce size by reordering variable declarations
Close gh-1421
parent
b278d817
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
16 deletions
+17
-16
classes.js
src/attributes/classes.js
+4
-4
access.js
src/core/access.js
+3
-3
effects.js
src/effects.js
+4
-4
findFilter.js
src/traversing/findFilter.js
+6
-5
No files found.
src/attributes/classes.js
View file @
b8d0d54a
...
...
@@ -11,9 +11,9 @@ var rclass = /[\t\r\n\f]/g;
jQuery
.
fn
.
extend
({
addClass
:
function
(
value
)
{
var
classes
,
elem
,
cur
,
clazz
,
j
,
finalValue
,
proceed
=
typeof
value
===
"string"
&&
value
,
i
=
0
,
len
=
this
.
length
,
proceed
=
typeof
value
===
"string"
&&
value
;
len
=
this
.
length
;
if
(
jQuery
.
isFunction
(
value
)
)
{
return
this
.
each
(
function
(
j
)
{
...
...
@@ -54,9 +54,9 @@ jQuery.fn.extend({
removeClass
:
function
(
value
)
{
var
classes
,
elem
,
cur
,
clazz
,
j
,
finalValue
,
proceed
=
arguments
.
length
===
0
||
typeof
value
===
"string"
&&
value
,
i
=
0
,
len
=
this
.
length
,
proceed
=
arguments
.
length
===
0
||
typeof
value
===
"string"
&&
value
;
len
=
this
.
length
;
if
(
jQuery
.
isFunction
(
value
)
)
{
return
this
.
each
(
function
(
j
)
{
...
...
src/core/access.js
View file @
b8d0d54a
...
...
@@ -6,7 +6,7 @@ define([
// The value/s can optionally be executed if it's a function
var
access
=
jQuery
.
access
=
function
(
elems
,
fn
,
key
,
value
,
chainable
,
emptyGet
,
raw
)
{
var
i
=
0
,
len
gth
=
elems
.
length
,
len
=
elems
.
length
,
bulk
=
key
==
null
;
// Sets many values
...
...
@@ -40,7 +40,7 @@ var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGe
}
if
(
fn
)
{
for
(
;
i
<
len
gth
;
i
++
)
{
for
(
;
i
<
len
;
i
++
)
{
fn
(
elems
[
i
],
key
,
raw
?
value
:
value
.
call
(
elems
[
i
],
i
,
fn
(
elems
[
i
],
key
)
)
);
}
}
...
...
@@ -52,7 +52,7 @@ var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGe
// Gets
bulk
?
fn
.
call
(
elems
)
:
len
gth
?
fn
(
elems
[
0
],
key
)
:
emptyGet
;
len
?
fn
(
elems
[
0
],
key
)
:
emptyGet
;
};
return
access
;
...
...
src/effects.js
View file @
b8d0d54a
...
...
@@ -82,8 +82,8 @@ function createFxNow() {
// Generate parameters to create a standard animation
function
genFx
(
type
,
includeWidth
)
{
var
which
,
attrs
=
{
height
:
type
}
,
i
=
0
;
i
=
0
,
attrs
=
{
height
:
type
}
;
// if we include width, step value is 1 to do all cssExpand values,
// if we don't include width, step value is 2 to skip over Left and Right
...
...
@@ -590,8 +590,8 @@ jQuery.each({
jQuery
.
timers
=
[];
jQuery
.
fx
.
tick
=
function
()
{
var
timer
,
timers
=
jQuery
.
timers
,
i
=
0
;
i
=
0
,
timers
=
jQuery
.
timers
;
fxNow
=
jQuery
.
now
();
...
...
src/traversing/findFilter.js
View file @
b8d0d54a
...
...
@@ -53,14 +53,14 @@ jQuery.filter = function( expr, elems, not ) {
jQuery
.
fn
.
extend
({
find
:
function
(
selector
)
{
var
i
,
var
i
=
0
,
len
=
this
.
length
,
ret
=
[],
self
=
this
,
len
=
self
.
length
;
self
=
this
;
if
(
typeof
selector
!==
"string"
)
{
return
this
.
pushStack
(
jQuery
(
selector
).
filter
(
function
()
{
for
(
i
=
0
;
i
<
len
;
i
++
)
{
for
(
;
i
<
len
;
i
++
)
{
if
(
jQuery
.
contains
(
self
[
i
],
this
)
)
{
return
true
;
}
...
...
@@ -68,7 +68,8 @@ jQuery.fn.extend({
})
);
}
for
(
i
=
0
;
i
<
len
;
i
++
)
{
i
=
0
;
for
(
;
i
<
len
;
i
++
)
{
jQuery
.
find
(
selector
,
self
[
i
],
ret
);
}
...
...
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