Migrate core/keyboard_nav/marker.js to ES6 const/let

This commit is contained in:
kozbial
2021-07-19 11:27:57 -07:00
committed by Monica Kozbial
parent 69125f52eb
commit 3837440564

View File

@@ -85,7 +85,7 @@ Blockly.Marker.prototype.getCurNode = function() {
* @param {Blockly.ASTNode} newNode The new location of the marker.
*/
Blockly.Marker.prototype.setCurNode = function(newNode) {
var oldNode = this.curNode_;
const oldNode = this.curNode_;
this.curNode_ = newNode;
if (this.drawer_) {
this.drawer_.draw(oldNode, this.curNode_);