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]; } }