@@ -265,15 +265,19 @@ Entry.Engine = class Engine {
265
265
this . isLoaded = true ;
266
266
const isSoundEmpty = Entry . soundQueue . urls . size < 1 ;
267
267
if ( isSoundEmpty || Entry . soundQueue . loadComplete ) {
268
- this . runButtonCurtain = Entry . Dom ( 'div' , {
269
- class : 'entryRunButtonBigMinimizeCurtain' ,
270
- parent : $ ( '#entryCanvasWrapper' ) ,
271
- } ) ;
272
- this . runButton = Entry . Dom ( 'div' , {
273
- class : 'entryRunButtonBigMinimize' ,
274
- parent : this . runButtonCurtain ,
275
- } ) ;
276
- this . runButton . bindOnClick ( ( ) => Entry . engine . toggleRun ( ) ) ;
268
+ if ( ! this . runButtonCurtain ) {
269
+ this . runButtonCurtain = Entry . Dom ( 'div' , {
270
+ class : 'entryRunButtonBigMinimizeCurtain' ,
271
+ parent : $ ( '#entryCanvasWrapper' ) ,
272
+ } ) ;
273
+ }
274
+ if ( ! this . runButton ) {
275
+ this . runButton = Entry . Dom ( 'div' , {
276
+ class : 'entryRunButtonBigMinimize' ,
277
+ parent : this . runButtonCurtain ,
278
+ } ) ;
279
+ this . runButton . bindOnClick ( ( ) => Entry . engine . toggleRun ( ) ) ;
280
+ }
277
281
if ( Entry . options . isStartOnLoaded && Entry . engine . state === 'stop' ) {
278
282
Entry . engine . toggleRun ( ) ;
279
283
}
0 commit comments