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
ab1d9a8a
Commit
ab1d9a8a
authored
Jan 26, 2011
by
gnarf
Committed by
Anton M
Jan 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded and confusing variable definition for better readability.
parent
ba43d373
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
core.js
src/core.js
+2
-3
No files found.
src/core.js
View file @
ab1d9a8a
...
@@ -929,10 +929,9 @@ jQuery.extend({
...
@@ -929,10 +929,9 @@ jQuery.extend({
if
(
length
>
1
)
{
if
(
length
>
1
)
{
resolveArray
=
new
Array
(
length
);
resolveArray
=
new
Array
(
length
);
jQuery
.
each
(
args
,
function
(
index
,
element
,
args
)
{
jQuery
.
each
(
args
,
function
(
index
,
element
)
{
jQuery
.
when
(
element
).
then
(
function
(
value
)
{
jQuery
.
when
(
element
).
then
(
function
(
value
)
{
args
=
arguments
;
resolveArray
[
index
]
=
arguments
.
length
>
1
?
slice
.
call
(
arguments
,
0
)
:
value
;
resolveArray
[
index
]
=
args
.
length
>
1
?
slice
.
call
(
args
,
0
)
:
value
;
if
(
!
--
length
)
{
if
(
!
--
length
)
{
deferred
.
resolveWith
(
promise
,
resolveArray
);
deferred
.
resolveWith
(
promise
,
resolveArray
);
}
}
...
...
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