mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Fix glow to new getBlockById
This commit is contained in:
parent
9073cec9d7
commit
3fe1daa733
1 changed files with 2 additions and 2 deletions
|
@ -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.';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue