summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-07-10 08:55:39 +0200
committerjmoenig <jens@moenig.org>2013-07-10 08:55:39 +0200
commit2589ec517206d4325b58e2678016f19945b2fbb9 (patch)
treeaefddd470eb8ed0542f48d45eaa26f9672fa1803 /gui.js
parent167a175d181dcfa7b20e453178425d3e0021db8f (diff)
downloadsnap-yow-2589ec517206d4325b58e2678016f19945b2fbb9.tar.gz
snap-yow-2589ec517206d4325b58e2678016f19945b2fbb9.zip
Reset hidden primitives and code mappings upon loading a new project
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/gui.js b/gui.js
index d13df20..194093b 100644
--- a/gui.js
+++ b/gui.js
@@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.gui = '2013-July-04';
+modules.gui = '2013-July-10';
// Declarations
@@ -2717,6 +2717,10 @@ IDE_Morph.prototype.openProjectString = function (str) {
IDE_Morph.prototype.rawOpenProjectString = function (str) {
this.toggleAppMode(false);
this.spriteBar.tabBar.tabTo('scripts');
+ StageMorph.prototype.hiddenPrimitives = {};
+ StageMorph.prototype.codeMappings = {};
+ StageMorph.prototype.codeHeaders = {};
+ StageMorph.prototype.enableCodeMapping = false;
if (Process.prototype.isCatchingErrors) {
try {
this.serializer.openProject(this.serializer.load(str), this);
@@ -2747,6 +2751,10 @@ IDE_Morph.prototype.openCloudDataString = function (str) {
IDE_Morph.prototype.rawOpenCloudDataString = function (str) {
var model;
+ StageMorph.prototype.hiddenPrimitives = {};
+ StageMorph.prototype.codeMappings = {};
+ StageMorph.prototype.codeHeaders = {};
+ StageMorph.prototype.enableCodeMapping = false;
if (Process.prototype.isCatchingErrors) {
try {
model = this.serializer.parse(str);