summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2015-05-01 12:18:16 -0400
committerJens Mönig <jens@moenig.org>2015-05-01 12:18:16 -0400
commit8fa2b2c1f2d1b8d0b71204a7fb4a8b783762ff1a (patch)
tree44d04ad3c40f46b59e4c0d9f20d9f5ca93f2aee1 /gui.js
parent1f9d5d384d73432c42e711eb05bb2ff9a31e9b34 (diff)
downloadsnap-8fa2b2c1f2d1b8d0b71204a7fb4a8b783762ff1a.tar.gz
snap-8fa2b2c1f2d1b8d0b71204a7fb4a8b783762ff1a.zip
parameters for embedding projects
Thanks, Bernat!
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js17
1 files changed, 15 insertions, 2 deletions
diff --git a/gui.js b/gui.js
index 69b4a9d..0d866b4 100644
--- a/gui.js
+++ b/gui.js
@@ -384,8 +384,21 @@ IDE_Morph.prototype.openIn = function (world) {
myself.shield.destroy();
myself.shield = null;
msg.destroy();
- myself.toggleAppMode(true);
- myself.runScripts();
+
+ if (dict.editMode) {
+ myself.toggleAppMode(false);
+ } else {
+ myself.toggleAppMode(true);
+ }
+
+ if (!dict.noRun) {
+ myself.runScripts();
+ }
+
+ if (dict.hideControls) {
+ myself.controlBar.hide();
+ window.onbeforeunload = function () {nop(); };
+ }
}
]);
},