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
4add9fa9
Commit
4add9fa9
authored
Oct 18, 2008
by
Ariel Flesler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jquery fx: closes #3495. Animations are synchronous when duration is 0.
parent
aa9236e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
fx.js
src/fx.js
+4
-6
No files found.
src/fx.js
View file @
4add9fa9
...
@@ -208,9 +208,8 @@ jQuery.extend({
...
@@ -208,9 +208,8 @@ jQuery.extend({
easing
:
fn
&&
easing
||
easing
&&
easing
.
constructor
!=
Function
&&
easing
easing
:
fn
&&
easing
||
easing
&&
easing
.
constructor
!=
Function
&&
easing
};
};
opt
.
duration
=
(
opt
.
duration
&&
opt
.
duration
.
constructor
==
Number
?
opt
.
duration
=
typeof
opt
.
duration
==
'number'
?
opt
.
duration
:
opt
.
duration
:
jQuery
.
fx
.
speeds
[
opt
.
duration
]
||
jQuery
.
fx
.
speeds
.
_default
;
jQuery
.
fx
.
speeds
[
opt
.
duration
])
||
jQuery
.
fx
.
speeds
.
_default
;
// Queueing
// Queueing
opt
.
old
=
opt
.
complete
;
opt
.
old
=
opt
.
complete
;
...
@@ -278,7 +277,6 @@ jQuery.fx.prototype = {
...
@@ -278,7 +277,6 @@ jQuery.fx.prototype = {
this
.
unit
=
unit
||
this
.
unit
||
"px"
;
this
.
unit
=
unit
||
this
.
unit
||
"px"
;
this
.
now
=
this
.
start
;
this
.
now
=
this
.
start
;
this
.
pos
=
this
.
state
=
0
;
this
.
pos
=
this
.
state
=
0
;
this
.
update
();
var
self
=
this
;
var
self
=
this
;
function
t
(
gotoEnd
){
function
t
(
gotoEnd
){
...
@@ -289,7 +287,7 @@ jQuery.fx.prototype = {
...
@@ -289,7 +287,7 @@ jQuery.fx.prototype = {
jQuery
.
timers
.
push
(
t
);
jQuery
.
timers
.
push
(
t
);
if
(
jQuery
.
timerId
==
null
)
{
if
(
t
()
&&
jQuery
.
timerId
==
null
)
{
jQuery
.
timerId
=
setInterval
(
function
(){
jQuery
.
timerId
=
setInterval
(
function
(){
var
timers
=
jQuery
.
timers
;
var
timers
=
jQuery
.
timers
;
...
@@ -337,7 +335,7 @@ jQuery.fx.prototype = {
...
@@ -337,7 +335,7 @@ jQuery.fx.prototype = {
step
:
function
(
gotoEnd
){
step
:
function
(
gotoEnd
){
var
t
=
now
();
var
t
=
now
();
if
(
gotoEnd
||
t
>
this
.
options
.
duration
+
this
.
startTime
)
{
if
(
gotoEnd
||
t
>
=
this
.
options
.
duration
+
this
.
startTime
)
{
this
.
now
=
this
.
end
;
this
.
now
=
this
.
end
;
this
.
pos
=
this
.
state
=
1
;
this
.
pos
=
this
.
state
=
1
;
this
.
update
();
this
.
update
();
...
...
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