From 0b80976c9c2fc688663c521f4eb9a583b36949c4 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 6 Jun 2014 12:12:19 +0200 Subject: tweaks --- blocks.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'blocks.js') diff --git a/blocks.js b/blocks.js index d5730b6..4d14351 100644 --- a/blocks.js +++ b/blocks.js @@ -2268,7 +2268,6 @@ BlockMorph.prototype.relabel = function (alternativeSelectors) { menu.addItem( block, function () { - myself.setCategory(SpriteMorph.prototype.blocks[sel].category); myself.setSelector(sel); } ); @@ -2284,7 +2283,7 @@ BlockMorph.prototype.setSelector = function (aSelector) { var oldInputs = this.inputs(), info; info = SpriteMorph.prototype.blocks[aSelector]; - this.category = info.category; + this.setCategory(info.category); this.selector = aSelector; this.setSpec(localize(info.spec)); this.restoreInputs(oldInputs); -- cgit v1.3.1