diff options
| author | Jens Mönig <jens@moenig.org> | 2013-04-23 08:03:32 -0700 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2013-04-23 08:03:32 -0700 |
| commit | 4fc82b7f067adcc979c4497dd1429f0ad8979f75 (patch) | |
| tree | cd98261bb261cb8d21adda02745b5b826fe227f8 /objects.js | |
| parent | d098dbb4ba80b5fd10deba3a0085f68a95e05b79 (diff) | |
| parent | 9661cc781ed4fa2410a20320e4808517df1a79e9 (diff) | |
| download | snap-byow-4fc82b7f067adcc979c4497dd1429f0ad8979f75.tar.gz snap-byow-4fc82b7f067adcc979c4497dd1429f0ad8979f75.zip | |
Merge pull request #57 from queryselector/issue-55
Fixed #55
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1675,7 +1675,7 @@ SpriteMorph.prototype.blockTemplates = function (category) { new VariableDialogMorph( null, function (pair) { - if (pair) { + if (pair && !myself.variables.silentFind(pair[0])) { myself.addVariable(pair[0], pair[1]); myself.toggleVariableWatcher(pair[0], pair[1]); myself.blocksCache[cat] = null; @@ -3796,7 +3796,7 @@ StageMorph.prototype.blockTemplates = function (category) { new VariableDialogMorph( null, function (pair) { - if (pair) { + if (pair && !myself.variables.silentFind(pair[0])) { myself.addVariable(pair[0], pair[1]); myself.toggleVariableWatcher(pair[0], pair[1]); myself.blocksCache[cat] = null; |
