File tree 5 files changed +790
-577
lines changed
5 files changed +790
-577
lines changed Original file line number Diff line number Diff line change 10
10
11
11
< body >
12
12
< div id ="root "> </ div >
13
- < script src ="./src/use-context .js "> </ script >
13
+ < script src ="./src/concurrent .js "> </ script >
14
14
</ body >
15
15
16
16
</ html >
Original file line number Diff line number Diff line change @@ -199,7 +199,6 @@ ul.solarsystem li.asteroids_meteorids {
199
199
top: 155px;
200
200
left: 315px;
201
201
z-index: 1;
202
- background: url(http://neography.com/experiment/circles/solarsystem/asteroids_meteorids.png) no-repeat 0 0;
203
202
width: 330px;
204
203
height: 330px;
205
204
border-radius: 165px;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " fre" ,
3
- "version" : " 1.13.4 " ,
3
+ "version" : " 1.13.5 " ,
4
4
"description" : " " ,
5
5
"main" : " dist/fre.js" ,
6
6
"unpkg" : " dist/fre.js" ,
22
22
"license" : " MIT" ,
23
23
"devDependencies" : {
24
24
"@babel/core" : " ^7.0.0-0" ,
25
- "@babel/plugin-transform-react-jsx" : " ^7.3.0 " ,
25
+ "@babel/plugin-transform-react-jsx" : " ^7.9.4 " ,
26
26
"@babel/plugin-transform-runtime" : " ^7.6.2" ,
27
- "@babel/preset-env" : " ^7.6.3 " ,
28
- "@babel/preset-react" : " ^7.6.3 " ,
29
- "@babel/preset-typescript" : " ^7.6 .0" ,
27
+ "@babel/preset-env" : " ^7.9.5 " ,
28
+ "@babel/preset-react" : " ^7.9.4 " ,
29
+ "@babel/preset-typescript" : " ^7.9 .0" ,
30
30
"@types/jest" : " ^24.0.15" ,
31
31
"babel-jest" : " ^24.8.0" ,
32
32
"codecov" : " ^3.6.1" ,
Original file line number Diff line number Diff line change @@ -27,12 +27,11 @@ function flush(iniTime) {
27
27
let currentTask = peek ( taskQueue )
28
28
29
29
while ( currentTask ) {
30
- if ( currentTask . dueTime > currentTime && shouldYeild ( ) ) {
31
- break
32
- }
30
+ const didout = currentTask . dueTime <= currentTime
31
+ if ( ! didout && shouldYeild ( ) ) break
32
+
33
33
let callback = currentTask . callback
34
34
currentTask . callback = null
35
- const didout = currentTask . dueTime <= currentTime
36
35
37
36
let next = callback ( didout )
38
37
next ? ( currentTask . callback = next ) : pop ( taskQueue )
@@ -66,4 +65,4 @@ export function shouldYeild() {
66
65
return getTime ( ) >= frameDeadline
67
66
}
68
67
69
- export const getTime = ( ) => performance . now ( )
68
+ export const getTime = ( ) => performance . now ( )
You can’t perform that action at this time.
0 commit comments