diff --git a/core/zoom_controls.js b/core/zoom_controls.js index b69d3e128..f5b507508 100644 --- a/core/zoom_controls.js +++ b/core/zoom_controls.js @@ -277,7 +277,7 @@ Blockly.ZoomControls.prototype.createZoomOutSvg_ = function(rnd) { // Attach listener. this.onZoomOutWrapper_ = Blockly.bindEventWithChecks_( - zoomoutSvg, 'mousedown', null, this.zoom_.bind(this, -1)); + this.zoomOutGroup_, 'mousedown', null, this.zoom_.bind(this, -1)); }; /** @@ -328,7 +328,7 @@ Blockly.ZoomControls.prototype.createZoomInSvg_ = function(rnd) { // Attach listener. this.onZoomInWrapper_ = Blockly.bindEventWithChecks_( - zoominSvg, 'mousedown', null, this.zoom_.bind(this, 1)); + this.zoomInGroup_, 'mousedown', null, this.zoom_.bind(this, 1)); }; /** @@ -396,7 +396,7 @@ Blockly.ZoomControls.prototype.createZoomResetSvg_ = function(rnd) { // Attach event listeners. this.onZoomResetWrapper_ = Blockly.bindEventWithChecks_( - zoomresetSvg, 'mousedown', null, this.resetZoom_.bind(this)); + this.zoomResetGroup_, 'mousedown', null, this.resetZoom_.bind(this)); }; /** diff --git a/tests/mocha/index.html b/tests/mocha/index.html index b725c4daf..967975d5b 100644 --- a/tests/mocha/index.html +++ b/tests/mocha/index.html @@ -86,6 +86,7 @@ +