mirror of
https://github.com/google/blockly.git
synced 2026-03-11 15:50:10 +01:00
Remove need for require instead of requireType for Block in ASTNode (#5157)
This commit is contained in:
@@ -418,7 +418,7 @@ Blockly.ASTNode.prototype.findPrevForField_ = function() {
|
||||
*/
|
||||
Blockly.ASTNode.prototype.navigateBetweenStacks_ = function(forward) {
|
||||
var curLocation = this.getLocation();
|
||||
if (!(curLocation instanceof Blockly.Block)) {
|
||||
if (curLocation.getSourceBlock) {
|
||||
curLocation = /** @type {!Blockly.IASTNodeLocationWithBlock} */ (
|
||||
curLocation).getSourceBlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user