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
0191e989
Commit
0191e989
authored
Oct 31, 2011
by
Corey Frang
Committed by
Dave Methvin
Oct 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming 'runner' to 'hooks' - makes it a little more obvious whats happening
parent
38f087b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
effects.js
src/effects.js
+2
-2
queue.js
src/queue.js
+5
-5
No files found.
src/effects.js
View file @
0191e989
...
@@ -270,9 +270,9 @@ jQuery.fn.extend({
...
@@ -270,9 +270,9 @@ jQuery.fn.extend({
}
}
function
stopQueue
(
elem
,
data
,
i
)
{
function
stopQueue
(
elem
,
data
,
i
)
{
var
runner
=
data
[
i
];
var
hooks
=
data
[
i
];
jQuery
.
removeData
(
elem
,
i
,
true
);
jQuery
.
removeData
(
elem
,
i
,
true
);
runner
.
stop
(
gotoEnd
);
hooks
.
stop
(
gotoEnd
);
}
}
if
(
type
==
null
)
{
if
(
type
==
null
)
{
...
...
src/queue.js
View file @
0191e989
...
@@ -71,7 +71,7 @@ jQuery.extend({
...
@@ -71,7 +71,7 @@ jQuery.extend({
var
queue
=
jQuery
.
queue
(
elem
,
type
),
var
queue
=
jQuery
.
queue
(
elem
,
type
),
fn
=
queue
.
shift
(),
fn
=
queue
.
shift
(),
runner
=
{};
hooks
=
{};
// If the fx queue is dequeued, always remove the progress sentinel
// If the fx queue is dequeued, always remove the progress sentinel
if
(
fn
===
"inprogress"
)
{
if
(
fn
===
"inprogress"
)
{
...
@@ -85,10 +85,10 @@ jQuery.extend({
...
@@ -85,10 +85,10 @@ jQuery.extend({
queue
.
unshift
(
"inprogress"
);
queue
.
unshift
(
"inprogress"
);
}
}
jQuery
.
_data
(
elem
,
type
+
".run"
,
runner
);
jQuery
.
_data
(
elem
,
type
+
".run"
,
hooks
);
fn
.
call
(
elem
,
function
()
{
fn
.
call
(
elem
,
function
()
{
jQuery
.
dequeue
(
elem
,
type
);
jQuery
.
dequeue
(
elem
,
type
);
},
runner
);
},
hooks
);
}
}
if
(
!
queue
.
length
)
{
if
(
!
queue
.
length
)
{
...
@@ -127,9 +127,9 @@ jQuery.fn.extend({
...
@@ -127,9 +127,9 @@ jQuery.fn.extend({
time
=
jQuery
.
fx
?
jQuery
.
fx
.
speeds
[
time
]
||
time
:
time
;
time
=
jQuery
.
fx
?
jQuery
.
fx
.
speeds
[
time
]
||
time
:
time
;
type
=
type
||
"fx"
;
type
=
type
||
"fx"
;
return
this
.
queue
(
type
,
function
(
next
,
runner
)
{
return
this
.
queue
(
type
,
function
(
next
,
hooks
)
{
var
timeout
=
setTimeout
(
next
,
time
);
var
timeout
=
setTimeout
(
next
,
time
);
runner
.
stop
=
function
()
{
hooks
.
stop
=
function
()
{
clearTimeout
(
timeout
);
clearTimeout
(
timeout
);
};
};
});
});
...
...
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