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
2053d1c6
Commit
2053d1c6
authored
Aug 16, 2011
by
timmywil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove requestAnimationFrame support. Fixes #9381.
parent
0b8b6360
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
effects.js
src/effects.js
+3
-20
No files found.
src/effects.js
View file @
2053d1c6
...
@@ -13,10 +13,7 @@ var elemdisplay = {},
...
@@ -13,10 +13,7 @@ var elemdisplay = {},
// opacity animations
// opacity animations
[
"opacity"
]
[
"opacity"
]
],
],
fxNow
,
fxNow
;
requestAnimationFrame
=
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
window
.
oRequestAnimationFrame
;
jQuery
.
fn
.
extend
({
jQuery
.
fn
.
extend
({
show
:
function
(
speed
,
easing
,
callback
)
{
show
:
function
(
speed
,
easing
,
callback
)
{
...
@@ -392,8 +389,7 @@ jQuery.fx.prototype = {
...
@@ -392,8 +389,7 @@ jQuery.fx.prototype = {
// Start an animation from one number to another
// Start an animation from one number to another
custom
:
function
(
from
,
to
,
unit
)
{
custom
:
function
(
from
,
to
,
unit
)
{
var
self
=
this
,
var
self
=
this
,
fx
=
jQuery
.
fx
,
fx
=
jQuery
.
fx
;
raf
;
this
.
startTime
=
fxNow
||
createFxNow
();
this
.
startTime
=
fxNow
||
createFxNow
();
this
.
start
=
from
;
this
.
start
=
from
;
...
@@ -409,20 +405,7 @@ jQuery.fx.prototype = {
...
@@ -409,20 +405,7 @@ jQuery.fx.prototype = {
t
.
elem
=
this
.
elem
;
t
.
elem
=
this
.
elem
;
if
(
t
()
&&
jQuery
.
timers
.
push
(
t
)
&&
!
timerId
)
{
if
(
t
()
&&
jQuery
.
timers
.
push
(
t
)
&&
!
timerId
)
{
// Use requestAnimationFrame instead of setInterval if available
timerId
=
setInterval
(
fx
.
tick
,
fx
.
interval
);
if
(
requestAnimationFrame
)
{
timerId
=
true
;
raf
=
function
()
{
// When timerId gets set to null at any point, this stops
if
(
timerId
)
{
requestAnimationFrame
(
raf
);
fx
.
tick
();
}
};
requestAnimationFrame
(
raf
);
}
else
{
timerId
=
setInterval
(
fx
.
tick
,
fx
.
interval
);
}
}
}
},
},
...
...
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