diff --git a/core/blockly.js b/core/blockly.js index 5c4f7dd20..25da864f1 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -453,10 +453,10 @@ Blockly.bindEventWithChecks_ = function(node, name, thisObject, func, var bindData = []; if (window && window.PointerEvent && (name in Blockly.Touch.TOUCH_MAP)) { - for (var i = 0, type; type = Blockly.Touch.TOUCH_MAP[name][i]; i++) { - node.addEventListener(type, wrapFunc, false); - bindData.push([node, type, wrapFunc]); - } + for (var i = 0, type; type = Blockly.Touch.TOUCH_MAP[name][i]; i++) { + node.addEventListener(type, wrapFunc, false); + bindData.push([node, type, wrapFunc]); + } } else { node.addEventListener(name, wrapFunc, false); bindData.push([node, name, wrapFunc]); @@ -506,10 +506,10 @@ Blockly.bindEvent_ = function(node, name, thisObject, func) { var bindData = []; if (window && window.PointerEvent && (name in Blockly.Touch.TOUCH_MAP)) { - for (var i = 0, type; type = Blockly.Touch.TOUCH_MAP[name][i]; i++) { - node.addEventListener(type, wrapFunc, false); - bindData.push([node, type, wrapFunc]); - } + for (var i = 0, type; type = Blockly.Touch.TOUCH_MAP[name][i]; i++) { + node.addEventListener(type, wrapFunc, false); + bindData.push([node, type, wrapFunc]); + } } else { node.addEventListener(name, wrapFunc, false); bindData.push([node, name, wrapFunc]);