Fix glow to new getBlockById

This commit is contained in:
Tim Mickel 2016-05-12 21:58:33 -04:00
parent 9073cec9d7
commit 3fe1daa733

View file

@ -478,7 +478,7 @@ Blockly.WorkspaceSvg.prototype.highlightBlock = function(id) {
Blockly.WorkspaceSvg.prototype.glowBlock = function(id, isGlowingBlock) {
var block = null;
if (id) {
block = Blockly.Block.getById(id);
block = this.getBlockById(id);
if (!block) {
throw 'Tried to glow block that does not exist.';
}
@ -494,7 +494,7 @@ Blockly.WorkspaceSvg.prototype.glowBlock = function(id, isGlowingBlock) {
Blockly.WorkspaceSvg.prototype.glowStack = function(id, isGlowingStack) {
var block = null;
if (id) {
block = Blockly.Block.getById(id);
block = this.getBlockById(id);
if (!block) {
throw 'Tried to glow stack on block that does not exist.';
}