Fixing basic warnings in block_render_draw_debug.

This commit is contained in:
kozbial
2019-08-16 11:51:24 -07:00
parent 5f9e54a309
commit 41e6167334

View File

@@ -44,7 +44,7 @@ Blockly.blockRendering.Debug = function() {
/**
* The SVG root of the block that is being rendered. Debug elements will
* be attached to this root.
* @type {!SVGElement}
* @type {SVGElement}
*/
this.svgRoot_ = null;
@@ -68,7 +68,8 @@ Blockly.blockRendering.Debug = function() {
* @package
*/
Blockly.blockRendering.Debug.prototype.clearElems = function() {
for (var i = 0, elem; elem = this.debugElements_[i]; i++) {
for (var i = 0, elem; i < this.debugElements_.length; i++) {
elem = this.debugElements_[i];
Blockly.utils.dom.removeNode(elem);
}