Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
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
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
4f194af8
Commit
4f194af8
authored
May 25, 2016
by
Robert Knight
Committed by
Nick Stenning
May 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a remaining unused piece of the old threading implementation (#3359)
This was missed in 6c0e21a5df.
parent
afc5812a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
render.coffee
h/static/scripts/render.coffee
+0
-26
No files found.
h/static/scripts/render.coffee
deleted
100644 → 0
View file @
afc5812a
###*
# @ngdoc service
# @name render
# @param {function()} fn A function to execute in a future animation frame.
# @returns {function()} A function to cancel the execution.
# @description
# The render service is a wrapper around `window#requestAnimationFrame()` for
# scheduling sequential updates in successive animation frames. It has the
# same signature as the original function, but will queue successive calls
# for future frames so that at most one callback is handled per animation frame.
# Use this service to schedule DOM-intensive digests.
###
module
.
exports
=
[
'$$rAF'
,
(
$$rAF
)
->
cancel
=
null
queue
=
[]
render
=
->
return
cancel
=
null
if
queue
.
length
is
0
do
queue
.
shift
()
$$rAF
(
render
)
(
fn
)
->
queue
.
push
fn
unless
cancel
then
cancel
=
$$rAF
(
render
)
->
queue
=
(
f
for
f
in
queue
when
f
isnt
fn
)
]
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