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
499d7e40
Commit
499d7e40
authored
Nov 11, 2011
by
Corey Frang
Committed by
Dave Methvin
Nov 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensuring that nulls in private data object won't cause errors on stop() - Fixes #10750
parent
a467aa0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
effects.js
src/effects.js
+14
-14
No files found.
src/effects.js
View file @
499d7e40
...
@@ -264,7 +264,7 @@ jQuery.fn.extend({
...
@@ -264,7 +264,7 @@ jQuery.fn.extend({
}
}
return
this
.
each
(
function
()
{
return
this
.
each
(
function
()
{
var
i
,
var
i
ndex
,
hadTimers
=
false
,
hadTimers
=
false
,
timers
=
jQuery
.
timers
,
timers
=
jQuery
.
timers
,
data
=
jQuery
.
_data
(
this
);
data
=
jQuery
.
_data
(
this
);
...
@@ -274,33 +274,33 @@ jQuery.fn.extend({
...
@@ -274,33 +274,33 @@ jQuery.fn.extend({
jQuery
.
_unmark
(
true
,
this
);
jQuery
.
_unmark
(
true
,
this
);
}
}
function
stopQueue
(
elem
,
data
,
i
)
{
function
stopQueue
(
elem
,
data
,
i
ndex
)
{
var
hooks
=
data
[
i
];
var
hooks
=
data
[
i
ndex
];
jQuery
.
removeData
(
elem
,
i
,
true
);
jQuery
.
removeData
(
elem
,
i
ndex
,
true
);
hooks
.
stop
(
gotoEnd
);
hooks
.
stop
(
gotoEnd
);
}
}
if
(
type
==
null
)
{
if
(
type
==
null
)
{
for
(
i
in
data
)
{
for
(
i
ndex
in
data
)
{
if
(
data
[
i
].
stop
&&
i
.
indexOf
(
".run"
)
===
i
.
length
-
4
)
{
if
(
data
[
i
ndex
]
&&
data
[
index
].
stop
&&
index
.
indexOf
(
".run"
)
===
index
.
length
-
4
)
{
stopQueue
(
this
,
data
,
i
);
stopQueue
(
this
,
data
,
i
ndex
);
}
}
}
}
}
else
if
(
data
[
i
=
type
+
".run"
]
&&
data
[
i
].
stop
){
}
else
if
(
data
[
i
ndex
=
type
+
".run"
]
&&
data
[
index
].
stop
){
stopQueue
(
this
,
data
,
i
);
stopQueue
(
this
,
data
,
i
ndex
);
}
}
for
(
i
=
timers
.
length
;
i
--
;
)
{
for
(
i
ndex
=
timers
.
length
;
index
--
;
)
{
if
(
timers
[
i
].
elem
===
this
&&
(
type
==
null
||
timers
[
i
].
queue
===
type
)
)
{
if
(
timers
[
i
ndex
].
elem
===
this
&&
(
type
==
null
||
timers
[
index
].
queue
===
type
)
)
{
if
(
gotoEnd
)
{
if
(
gotoEnd
)
{
// force the next step to be the last
// force the next step to be the last
timers
[
i
](
true
);
timers
[
i
ndex
](
true
);
}
else
{
}
else
{
timers
[
i
].
saveState
();
timers
[
i
ndex
].
saveState
();
}
}
hadTimers
=
true
;
hadTimers
=
true
;
timers
.
splice
(
i
,
1
);
timers
.
splice
(
i
ndex
,
1
);
}
}
}
}
...
...
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