mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Fixing basic warnings in block_render_draw_debug.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user