Skip to content

Commit 7d5d7fd

Browse files
author
kim jeong yong
committed
clearProject와 loadProject시 오류 수정
불필요한 console제거
1 parent 800e180 commit 7d5d7fd

File tree

4 files changed

+494
-517
lines changed

4 files changed

+494
-517
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@entrylabs/entry",
33
"title": "EntryJS",
44
"description": "JavaScript library for visual programming",
5-
"version": "4.0.19",
5+
"version": "4.0.20",
66
"main": "dist/entry.min.js",
77
"homepage": "https://playentry.org",
88
"author": {

src/class/engine.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,19 @@ Entry.Engine = class Engine {
265265
this.isLoaded = true;
266266
const isSoundEmpty = Entry.soundQueue.urls.size < 1;
267267
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+
}
277281
if (Entry.options.isStartOnLoaded && Entry.engine.state === 'stop') {
278282
Entry.engine.toggleRun();
279283
}

0 commit comments

Comments
 (0)