Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Aug 11, 2022
1 parent b6d912e commit b6dbd66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ This is how we define the Blocks in our Custom Extension...
https://github.com/lupyuen3/blockly-zig-nuttx/blob/66c61a1a03200a67a24ea0cb5f2c99a27119a968/generators/zig/compose_msg.js#L59-L92
Our Custom Extension needs a [Mutator](https://developers.google.com/blockly/guides/create-custom-blocks/extensions#mutators) that will save the attached Message Field.
Our Custom Extension needs a [Mutator](https://developers.google.com/blockly/guides/create-custom-blocks/extensions#mutators) that will save the attached Message Fields.
Here's the [Mixin](https://developers.google.com/blockly/guides/create-custom-blocks/extensions#mixins) that implements the Mutator for our Custom Extension...
Expand Down
8 changes: 4 additions & 4 deletions generators/zig/compose_msg.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
*/
blocks.COMPOSE_MSG_MUTATOR_MIXIN = {
/**
* Create XML to represent number of text inputs.
* Create XML to represent the Message Fields.
* @return {!Element} XML storage element.
* @this {Blockly.Block}
*/
Expand All @@ -109,7 +109,7 @@ blocks.COMPOSE_MSG_MUTATOR_MIXIN = {
return container;
},
/**
* Parse XML to restore the text inputs.
* Parse XML to restore the Message Fields.
* @param {!Element} xmlElement XML storage element.
* @this {Blockly.Block}
*/
Expand Down Expand Up @@ -214,11 +214,11 @@ blocks.COMPOSE_MSG_MUTATOR_MIXIN = {
* @this {Blockly.Block}
*/
blocks.COMPOSE_MSG_EXTENSION = function() {
// Add the quote mixin for the itemCount_ = 0 case.
//// TODO: this.mixin(Blockly.Constants.Text.QUOTE_IMAGE_MIXIN);

// Initialize the mutator values.
this.itemCount_ = 2;
this.updateShape_();

// Configure the mutator UI.
this.setMutator(new Blockly.Mutator(['compose_msg_item']));
};
Expand Down
2 changes: 1 addition & 1 deletion zig_compressed.js.map

Large diffs are not rendered by default.

0 comments on commit b6dbd66

Please sign in to comment.