diff options
| author | jmoenig <jens@moenig.org> | 2014-07-22 12:33:26 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-07-22 12:33:26 +0200 |
| commit | df25b4dc73b97dba899ff28d63474a28650c4c18 (patch) | |
| tree | c49634a4813c4a8a575659e13595effa70152b70 /objects.js | |
| parent | 15a751ad85b424703502e881ed8aaabdffe18e3e (diff) | |
| download | snap-yow-df25b4dc73b97dba899ff28d63474a28650c4c18.tar.gz snap-yow-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.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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, |
