diff options
| author | jmoenig <jens@moenig.org> | 2013-07-15 15:45:11 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-07-15 15:45:11 +0200 |
| commit | 4c9150d7e76a83bff903c079b3595cb44a255b30 (patch) | |
| tree | d2a4918229f0512f4392c4ea353c9f7aae766b6a /objects.js | |
| parent | 6dbfe66420571a945688278cba70451083b43ccd (diff) | |
| download | snap-yow-4c9150d7e76a83bff903c079b3595cb44a255b30.tar.gz snap-yow-4c9150d7e76a83bff903c079b3595cb44a255b30.zip | |
experimental text-function primitive
(hidden, shown only in dev mode in the operators category)
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -918,6 +918,13 @@ SpriteMorph.prototype.initBlocks = function () { spec: 'type of %s', defaults: [5] }, + reportTextFunction: { // only in dev mode - experimental + type: 'reporter', + category: 'operators', + spec: '%txtfun of %s', + defaults: [null, "Abelson & Sussman"] + }, + /* reportScript: { type: 'reporter', @@ -1703,6 +1710,7 @@ SpriteMorph.prototype.blockTemplates = function (category) { blocks.push(txt); blocks.push('-'); blocks.push(block('reportTypeOf')); + blocks.push(block('reportTextFunction')); } ///////////////////////////////// @@ -3963,6 +3971,7 @@ StageMorph.prototype.blockTemplates = function (category) { blocks.push(txt); blocks.push('-'); blocks.push(block('reportTypeOf')); + blocks.push(block('reportTextFunction')); } ////////////////////////////////// |
