summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-07-22 12:33:26 +0200
committerjmoenig <jens@moenig.org>2014-07-22 12:33:26 +0200
commitdf25b4dc73b97dba899ff28d63474a28650c4c18 (patch)
treec49634a4813c4a8a575659e13595effa70152b70 /objects.js
parent15a751ad85b424703502e881ed8aaabdffe18e3e (diff)
downloadsnap-df25b4dc73b97dba899ff28d63474a28650c4c18.tar.gz
snap-df25b4dc73b97dba899ff28d63474a28650c4c18.zip
fixed #521
deleting variable watchers by dropping them on the palette resulted in wrong ones to be created when showing them again
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/objects.js b/objects.js
index e395369..af68ceb 100644
--- a/objects.js
+++ b/objects.js
@@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.objects = '2014-July-17';
+modules.objects = '2014-July-22';
var SpriteMorph;
var StageMorph;
@@ -3545,6 +3545,9 @@ SpriteMorph.prototype.toggleVariableWatcher = function (varName, isGlobal) {
}
// if no watcher exists, create a new one
+ if (isNil(isGlobal)) {
+ isGlobal = contains(this.variables.parentFrame.names(), varName);
+ }
watcher = new WatcherMorph(
varName,
this.blockColor.variables,