From 43423f268e965c92bd062d73aa28438f2c9169d3 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Tue, 24 Oct 2017 16:58:26 -0700 Subject: [PATCH] Fix code demo in IE if Blockly is compiled harder. Closure should not be used except within core. --- demos/code/code.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/code/code.js b/demos/code/code.js index db839810c..aaa514dd8 100644 --- a/demos/code/code.js +++ b/demos/code/code.js @@ -387,7 +387,7 @@ Code.init = function() { // TODO: Clean up the message files so this is done explicitly instead of // through this for-loop. for (var messageKey in MSG) { - if (goog.string.startsWith(messageKey, 'cat')) { + if (messageKey.indexOf('cat') == 0) { Blockly.Msg[messageKey.toUpperCase()] = MSG[messageKey]; } }