From 167a175d181dcfa7b20e453178425d3e0021db8f Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 9 Jul 2013 21:10:16 +0200 Subject: Codification changes, Boolean slot bug fix * Collapsed codification primitives (code, header) into a single block * Added isEmptySlot() to BooleanArgMorph (thanks, Brian, for the bug report!) --- threads.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'threads.js') diff --git a/threads.js b/threads.js index ab904ad..5aea6ec 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2013-July-04'; +modules.threads = '2013-July-09'; var ThreadManager; var Process; @@ -2291,6 +2291,18 @@ Process.prototype.reportTimer = function () { blocks - not needed to run or debug Snap */ +Process.prototype.doMapCodeOrHeader = function (aContext, anOption, aString) { + if (this.inputOption(anOption) === 'code') { + return this.doMapCode(aContext, aString); + } + if (this.inputOption(anOption) === 'header') { + return this.doMapHeader(aContext, aString); + } + throw new Error( + ' \'' + anOption + '\'\nis not a valid option' + ); +}; + Process.prototype.doMapHeader = function (aContext, aString) { if (aContext instanceof Context) { if (aContext.expression instanceof SyntaxElementMorph) { -- cgit v1.3.1