mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
Collapse the five 0/1-based index flags into one option.
This commit is contained in:
@@ -76,7 +76,7 @@ Blockly.Python['lists_indexOf'] = function(block) {
|
||||
Blockly.Python.ORDER_NONE) || '[]';
|
||||
var list = Blockly.Python.valueToCode(block, 'VALUE',
|
||||
Blockly.Python.ORDER_NONE) || '\'\'';
|
||||
if (Blockly.Python.ONE_BASED_INDEXING) {
|
||||
if (block.workspace.options.oneBasedIndex) {
|
||||
var errorIndex = ' 0';
|
||||
var firstIndexAdjustment = ' + 1';
|
||||
var lastIndexAdjustment = '';
|
||||
|
||||
Reference in New Issue
Block a user