mirror of
https://github.com/google/blockly.git
synced 2025-12-16 14:20:10 +01:00
Automatic commit Wed Jan 15 03:00:09 PST 2014
This commit is contained in:
@@ -67,7 +67,7 @@ Blockly.JavaScript['lists_repeat'] = function(block) {
|
||||
Blockly.JavaScript['lists_length'] = function(block) {
|
||||
// List length.
|
||||
var argument0 = Blockly.JavaScript.valueToCode(block, 'VALUE',
|
||||
Blockly.JavaScript.ORDER_FUNCTION_CALL) || '\'\'';
|
||||
Blockly.JavaScript.ORDER_FUNCTION_CALL) || '[]';
|
||||
return [argument0 + '.length', Blockly.JavaScript.ORDER_MEMBER];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user