summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2015-05-01 12:05:42 -0400
committerJens Mönig <jens@moenig.org>2015-05-01 12:05:42 -0400
commit848773073a6fe873b0876246bb48aad67497cc43 (patch)
tree44a7441120002c52aea5f18acb90919d331511d4 /gui.js
parent052a3e07b31d59a88343faa55001314ad058820e (diff)
parent30caffbf02a54f73697f8f62e3e3f31f3a55db2f (diff)
downloadsnap-848773073a6fe873b0876246bb48aad67497cc43.tar.gz
snap-848773073a6fe873b0876246bb48aad67497cc43.zip
Merge pull request #768 from bromagosa/contrib
new parameters to allow embedding projects
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 f8c218c..594a682 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 (evt) {};
+ }
}
]);
},