From f55438b4e63035ffcea928fb21125e28b12d4f39 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 10 Apr 2019 08:48:03 +0200 Subject: [PATCH] took out MAP and FOREACH primitives gain (available in dev mode) --- HISTORY.md | 4 +++- snap.html | 2 +- src/objects.js | 18 +++++++++--------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 60701f91..c6246751 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -25,7 +25,6 @@ * new "get graphic effect" reporter * new "get pen attribute" reporter * new "write" command in pen category (used to be "label" in tools) - * new "map" and "for each" primitives in list category * added "neg" selector to monadic function reporter in "Operators" category * added "log2" selector to monadic function reporter in "Operators" category * added "^" reporter (power of) in the Operators category @@ -68,6 +67,9 @@ * German * French +### 2019-04-10 +* took out MAP and FOREACH primitives (available in dev mode) + ### 2019-04-09 * Blocks, Objects, Threads: new "getImageAttribute" reporter primitive * Objects, Threads: let "getImageAttribute" deal with null costumes diff --git a/snap.html b/snap.html index 4da466d5..2697d471 100755 --- a/snap.html +++ b/snap.html @@ -8,7 +8,7 @@ - + diff --git a/src/objects.js b/src/objects.js index 3de18a14..227004f6 100644 --- a/src/objects.js +++ b/src/objects.js @@ -84,7 +84,7 @@ BlockEditorMorph, BlockDialogMorph, PrototypeHatBlockMorph, localize, TableMorph, TableFrameMorph, normalizeCanvas, BooleanSlotMorph, HandleMorph, AlignmentMorph, Process, XML_Element, VectorPaintEditorMorph*/ -modules.objects = '2019-April-09'; +modules.objects = '2019-April-10'; var SpriteMorph; var StageMorph; @@ -2409,9 +2409,6 @@ SpriteMorph.prototype.blockTemplates = function (category) { blocks.push(block('reportListLength')); blocks.push(block('reportListContainsItem')); blocks.push('-'); - blocks.push(block('doForEach')); - blocks.push(block('reportMap')); - blocks.push('-'); blocks.push(block('doAddToList')); blocks.push(block('doDeleteFromList')); blocks.push(block('doInsertInList')); @@ -2428,6 +2425,9 @@ SpriteMorph.prototype.blockTemplates = function (category) { txt.setColor(this.paletteTextColor); blocks.push(txt); blocks.push('-'); + blocks.push(block('doForEach')); + blocks.push(block('reportMap')); + blocks.push('-'); blocks.push(block('doShowTable')); } @@ -2590,8 +2590,8 @@ SpriteMorph.prototype.freshPalette = function (category) { 'reportCDR', 'reportListLength', 'reportListContainsItem', - 'doForEach', - 'reportMap', + // 'doForEach', + // 'reportMap', 'doAddToList', 'doDeleteFromList', 'doInsertInList', @@ -7930,9 +7930,6 @@ StageMorph.prototype.blockTemplates = function (category) { blocks.push(block('reportListLength')); blocks.push(block('reportListContainsItem')); blocks.push('-'); - blocks.push(block('doForEach')); - blocks.push(block('reportMap')); - blocks.push('-'); blocks.push(block('doAddToList')); blocks.push(block('doDeleteFromList')); blocks.push(block('doInsertInList')); @@ -7949,6 +7946,9 @@ StageMorph.prototype.blockTemplates = function (category) { txt.setColor(this.paletteTextColor); blocks.push(txt); blocks.push('-'); + blocks.push(block('doForEach')); + blocks.push(block('reportMap')); + blocks.push('-'); blocks.push(block('doShowTable')); }