summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorNathan Dinsmore <queryselector@gmail.com>2013-04-21 13:53:39 -0400
committerNathan Dinsmore <queryselector@gmail.com>2013-04-21 14:45:51 -0400
commitcad54f7433f48a016f3ebc8ae37a6fe75090bcfb (patch)
tree024cb87decb2a244b46e6e1fe8869041f4adedd9 /objects.js
parent977da0314c01ce8d3cda160cb913e12d4a980f36 (diff)
downloadsnap-byow-cad54f7433f48a016f3ebc8ae37a6fe75090bcfb.tar.gz
snap-byow-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.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/objects.js b/objects.js
index dc47375..9939dec 100644
--- a/objects.js
+++ b/objects.js
@@ -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