Missed one use of string instead of .property in extensions.js (#1262)

This commit is contained in:
RoboErikG
2017-08-04 11:34:33 -07:00
committed by GitHub
parent fab59facee
commit 26e74f72d6

View File

@@ -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;