Fix typo causing TypeError (#901)

This commit is contained in:
Benjie Gillam
2017-02-01 17:13:03 +00:00
committed by Andrew n marshall
parent e95991cba8
commit 7d8fa7327c

View File

@@ -304,7 +304,7 @@ Blockly.Blocks['lists_indexOf'] = {
var thisBlock = this;
this.setTooltip(function() {
return Blockly.Msg.LISTS_INDEX_OF_TOOLTIP.replace('%1',
this.workspace.options.oneBasedIndex ? '0' : '-1');
thisBlock.workspace.options.oneBasedIndex ? '0' : '-1');
});
}
};