mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Missed one use of string instead of .property in extensions.js (#1262)
This commit is contained in:
@@ -211,7 +211,7 @@ Blockly.Extensions.checkMutatorDialog_ = function(object, errorPrefix) {
|
||||
if (hasCompose && hasDecompose) {
|
||||
if (typeof object.compose !== 'function') {
|
||||
throw new Error(errorPrefix + 'compose must be a function.');
|
||||
} else if (typeof object['decompose'] !== 'function') {
|
||||
} else if (typeof object.decompose !== 'function') {
|
||||
throw new Error(errorPrefix + 'decompose must be a function.');
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user