From df25b4dc73b97dba899ff28d63474a28650c4c18 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 22 Jul 2014 12:33:26 +0200 Subject: fixed #521 deleting variable watchers by dropping them on the palette resulted in wrong ones to be created when showing them again --- objects.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'objects.js') 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, -- cgit v1.3.1