@@ -83,12 +83,12 @@ Blockly.DataCategory = function(workspace) {
8383 Blockly . DataCategory . addItemOfList ( xmlList , firstVariable ) ;
8484 Blockly . DataCategory . addItemNumberOfList ( xmlList , firstVariable ) ;
8585 Blockly . DataCategory . addLengthOfList ( xmlList , firstVariable ) ;
86- Blockly . DataCategory . addListAsArray ( xmlList , firstVariable ) ;
8786 Blockly . DataCategory . addListContainsItem ( xmlList , firstVariable ) ;
8887 Blockly . DataCategory . addSep ( xmlList ) ;
88+ Blockly . DataCategory . addListAsArray ( xmlList , firstVariable ) ;
89+ Blockly . DataCategory . addSetListArray ( xmlList , firstVariable ) ;
8990 Blockly . DataCategory . addShowList ( xmlList , firstVariable ) ;
9091 Blockly . DataCategory . addHideList ( xmlList , firstVariable ) ;
91- Blockly . DataCategory . addSetListArray ( xmlList , firstVariable ) ;
9292 }
9393
9494 // Now add table variables to the flyout
@@ -385,51 +385,51 @@ Blockly.DataCategory.addListContainsItem = function(xmlList, variable) {
385385} ;
386386
387387/**
388- * Construct and add a data_showlist block to xmlList.
388+ * Construct and add a data_lengthoflist block to xmlList.
389389 * @param {!Array.<!Element> } xmlList Array of XML block elements.
390390 * @param {?Blockly.VariableModel } variable Variable to select in the field.
391391 */
392- Blockly . DataCategory . addShowList = function ( xmlList , variable ) {
393- // <block type="data_showlist ">
392+ Blockly . DataCategory . addListAsArray = function ( xmlList , variable ) {
393+ // <block type="data_listasarray ">
394394 // <field name="LIST" variabletype="list" id="">variablename</field>
395395 // </block>
396- Blockly . DataCategory . addBlock ( xmlList , variable , 'data_showlist ' , 'LIST' ) ;
396+ Blockly . DataCategory . addBlock ( xmlList , variable , 'data_listasarray ' , 'LIST' ) ;
397397} ;
398398
399399/**
400- * Construct and add a data_hidelist block to xmlList.
400+ * Construct and add a data_lengthoflist block to xmlList.
401401 * @param {!Array.<!Element> } xmlList Array of XML block elements.
402402 * @param {?Blockly.VariableModel } variable Variable to select in the field.
403403 */
404- Blockly . DataCategory . addHideList = function ( xmlList , variable ) {
405- // <block type="data_hidelist ">
404+ Blockly . DataCategory . addSetListArray = function ( xmlList , variable ) {
405+ // <block type="data_setlistarray ">
406406 // <field name="LIST" variabletype="list" id="">variablename</field>
407407 // </block>
408- Blockly . DataCategory . addBlock ( xmlList , variable , 'data_hidelist ' , 'LIST' ) ;
408+ Blockly . DataCategory . addBlock ( xmlList , variable , 'data_setlistarray ' , 'LIST' ) ;
409409} ;
410410
411411/**
412- * Construct and add a data_lengthoflist block to xmlList.
412+ * Construct and add a data_showlist block to xmlList.
413413 * @param {!Array.<!Element> } xmlList Array of XML block elements.
414414 * @param {?Blockly.VariableModel } variable Variable to select in the field.
415415 */
416- Blockly . DataCategory . addListAsArray = function ( xmlList , variable ) {
417- // <block type="data_listasarray ">
416+ Blockly . DataCategory . addShowList = function ( xmlList , variable ) {
417+ // <block type="data_showlist ">
418418 // <field name="LIST" variabletype="list" id="">variablename</field>
419419 // </block>
420- Blockly . DataCategory . addBlock ( xmlList , variable , 'data_listasarray ' , 'LIST' ) ;
420+ Blockly . DataCategory . addBlock ( xmlList , variable , 'data_showlist ' , 'LIST' ) ;
421421} ;
422422
423423/**
424- * Construct and add a data_lengthoflist block to xmlList.
424+ * Construct and add a data_hidelist block to xmlList.
425425 * @param {!Array.<!Element> } xmlList Array of XML block elements.
426426 * @param {?Blockly.VariableModel } variable Variable to select in the field.
427427 */
428- Blockly . DataCategory . addSetListArray = function ( xmlList , variable ) {
429- // <block type="data_setlistarray ">
428+ Blockly . DataCategory . addHideList = function ( xmlList , variable ) {
429+ // <block type="data_hidelist ">
430430 // <field name="LIST" variabletype="list" id="">variablename</field>
431431 // </block>
432- Blockly . DataCategory . addBlock ( xmlList , variable , 'data_setlistarray ' , 'LIST' ) ;
432+ Blockly . DataCategory . addBlock ( xmlList , variable , 'data_hidelist ' , 'LIST' ) ;
433433} ;
434434
435435/**
0 commit comments