diff options
| author | Nathan Dinsmore <queryselector@gmail.com> | 2013-04-21 13:53:39 -0400 |
|---|---|---|
| committer | Nathan Dinsmore <queryselector@gmail.com> | 2013-04-21 14:45:51 -0400 |
| commit | cad54f7433f48a016f3ebc8ae37a6fe75090bcfb (patch) | |
| tree | 024cb87decb2a244b46e6e1fe8869041f4adedd9 /objects.js | |
| parent | 977da0314c01ce8d3cda160cb913e12d4a980f36 (diff) | |
| download | snap-cad54f7433f48a016f3ebc8ae37a6fe75090bcfb.tar.gz snap-cad54f7433f48a016f3ebc8ae37a6fe75090bcfb.zip | |
Fixed #23
Only one of each kind of dialog can now be open at any given time.
You can still open multiple dialogs for editing a costume and editing a block.
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -4476,11 +4476,7 @@ Costume.prototype.edit = function (aWorld) { dialog.fixLayout(); dialog.drawNew(); dialog.fixLayout(); - if (aWorld) { - aWorld.add(dialog); - aWorld.keyboardReceiver = dialog; - dialog.setCenter(aWorld.center()); - } + dialog.popUp(aWorld); }; // Costume thumbnail |
