summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui.js2
-rw-r--r--morphic.js3
-rw-r--r--objects.js6
3 files changed, 7 insertions, 4 deletions
diff --git a/gui.js b/gui.js
index 9b5f577..9f23ae2 100644
--- a/gui.js
+++ b/gui.js
@@ -1857,7 +1857,7 @@ IDE_Morph.prototype.removeSprite = function (sprite) {
IDE_Morph.prototype.userMenu = function () {
var menu = new MenuMorph(this);
- menu.addItem('help', 'nop');
+ // menu.addItem('help', 'nop');
return menu;
};
diff --git a/morphic.js b/morphic.js
index 6d93439..39b8741 100644
--- a/morphic.js
+++ b/morphic.js
@@ -6893,6 +6893,9 @@ MenuMorph.prototype.popup = function (world, pos) {
if (world.activeMenu) {
world.activeMenu.destroy();
}
+ if (this.items.length < 1 && !this.title) { // don't show empty menus
+ return;
+ }
world.add(this);
world.activeMenu = this;
this.fullChanged();
diff --git a/objects.js b/objects.js
index 1a9bb63..3cd3ca5 100644
--- a/objects.js
+++ b/objects.js
@@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.objects = '2014-July-08';
+modules.objects = '2014-July-11';
var SpriteMorph;
var StageMorph;
@@ -2577,7 +2577,7 @@ SpriteMorph.prototype.userMenu = function () {
menu = new MenuMorph(this);
if (ide && ide.isAppMode) {
- menu.addItem('help', 'nop');
+ // menu.addItem('help', 'nop');
return menu;
}
menu.addItem("duplicate", 'duplicate');
@@ -5116,7 +5116,7 @@ StageMorph.prototype.userMenu = function () {
myself = this;
if (ide && ide.isAppMode) {
- menu.addItem('help', 'nop');
+ // menu.addItem('help', 'nop');
return menu;
}
menu.addItem("edit", 'edit');