summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-04-03 12:03:34 +0200
committerjmoenig <jens@moenig.org>2013-04-03 12:03:34 +0200
commit18821f7bc1807b6ae199e2c207a865439ee6167f (patch)
treeea996b1b5e634bca04f756bdc9f93fadb51d5e3f /blocks.js
parent4804d8cfc82ecaad3e0906090994f6e804243b01 (diff)
downloadsnap-byow-18821f7bc1807b6ae199e2c207a865439ee6167f.tar.gz
snap-byow-18821f7bc1807b6ae199e2c207a865439ee6167f.zip
PrototypeHatBlocks accept anchored comments
You can now "stick" comments to the prototype hat block in the block editor
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/blocks.js b/blocks.js
index f157d50..6805bca 100644
--- a/blocks.js
+++ b/blocks.js
@@ -153,7 +153,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.blocks = '2013-April-02';
+modules.blocks = '2013-April-03';
var SyntaxElementMorph;
var BlockMorph;
@@ -4223,7 +4223,6 @@ ScriptsMorph.prototype.closestBlock = function (comment, hand) {
all,
function (block) {
return !block.comment
- && !(block instanceof PrototypeHatBlockMorph)
&& !block.isPrototype
&& block.bounds.containsPoint(handPos);
}
@@ -4236,7 +4235,6 @@ ScriptsMorph.prototype.closestBlock = function (comment, hand) {
all,
function (block) {
return !block.comment
- && !(block instanceof PrototypeHatBlockMorph)
&& !block.isPrototype
&& block.bounds.intersects(fb);
}