From b59f7f3e274688a4c70df6e9a16f02d88005a381 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 4 Jul 2013 15:31:05 +0200 Subject: Codification (blocks to text) support complete text code mapping and block header support, both via GUI and primitives, for built-in blocks and for custom ones. --- threads.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index d98d2b5..ab904ad 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2013-June-18'; +modules.threads = '2013-July-04'; var ThreadManager; var Process; @@ -2291,6 +2291,14 @@ Process.prototype.reportTimer = function () { blocks - not needed to run or debug Snap */ +Process.prototype.doMapHeader = function (aContext, aString) { + if (aContext instanceof Context) { + if (aContext.expression instanceof SyntaxElementMorph) { + return aContext.expression.mapHeader(aString || ''); + } + } +}; + Process.prototype.doMapCode = function (aContext, aString) { if (aContext instanceof Context) { if (aContext.expression instanceof SyntaxElementMorph) { -- cgit v1.3.1