File tree 2 files changed +4
-35
lines changed 2 files changed +4
-35
lines changed Original file line number Diff line number Diff line change @@ -4023,26 +4023,10 @@ function _Browser_makeAnimator(model, draw)
4023
4023
{
4024
4024
draw ( model ) ;
4025
4025
4026
- var state = 0 ;
4027
-
4028
- function updateIfNeeded ( )
4029
- {
4030
- state = state === 1
4031
- ? 0
4032
- : ( _Browser_requestAnimationFrame ( updateIfNeeded ) , draw ( model ) , 1 ) ;
4033
- }
4034
-
4035
4026
return function ( nextModel , isSync )
4036
4027
{
4037
4028
model = nextModel ;
4038
-
4039
- isSync
4040
- ? ( draw ( model ) ,
4041
- state === 2 && ( state = 1 )
4042
- )
4043
- : ( state === 0 && _Browser_requestAnimationFrame ( updateIfNeeded ) ,
4044
- state = 2
4045
- ) ;
4029
+ draw ( model ) ;
4046
4030
} ;
4047
4031
}
4048
4032
@@ -5911,4 +5895,4 @@ _Platform_export({'Main':{'init':$author$project$Main$main(
5911
5895
A2 ( $elm$json$Json$Decode$field , 'uid' , $elm$json$Json$Decode$int ) ) ;
5912
5896
} ,
5913
5897
A2 ( $elm$json$Json$Decode$field , 'visibility' , $elm$json$Json$Decode$string ) ) )
5914
- ] ) ) ) ( 0 ) } } ) ; } ( this ) ) ;
5898
+ ] ) ) ) ( 0 ) } } ) ; } ( this ) ) ;
Original file line number Diff line number Diff line change @@ -169,24 +169,9 @@ function _Browser_makeAnimator(model, draw) {
169
169
170
170
var state = 0 ;
171
171
172
- function updateIfNeeded ( ) {
173
- state =
174
- state === 1
175
- ? 0
176
- : ( _Browser_requestAnimationFrame ( updateIfNeeded ) ,
177
- draw ( model ) ,
178
- 1 ) ;
179
- }
180
-
181
172
return function ( nextModel , isSync ) {
182
173
model = nextModel ;
183
-
184
- isSync
185
- ? ( draw ( model ) ,
186
- state === 2 && ( state = 1 ) )
187
- : ( state === 0 &&
188
- _Browser_requestAnimationFrame ( updateIfNeeded ) ,
189
- ( state = 2 ) ) ;
174
+ draw ( model ) ;
190
175
} ;
191
176
}
192
177
@@ -4757,4 +4742,4 @@ var $author$project$Todo$main = $gren_lang$browser$Browser$element({ a_: functio
4757
4742
} , bm : function ( _v1 ) {
4758
4743
return $gren_lang$core$Platform$Sub$none ;
4759
4744
} , bo : $author$project$Todo$update , bq : $author$project$Todo$view } ) ;
4760
- _Platform_export ( { 'Todo' :{ 'init' :$author$project$Todo$main ( $gren_lang$core$Json$Decode$succeed ( { } ) ) } } ) ; } ( this . module ? this . module . exports : this ) ) ;
4745
+ _Platform_export ( { 'Todo' :{ 'init' :$author$project$Todo$main ( $gren_lang$core$Json$Decode$succeed ( { } ) ) } } ) ; } ( this . module ? this . module . exports : this ) ) ;
You can’t perform that action at this time.
0 commit comments