From fda7122b8654efcae527a41219a12d3b872171aa Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Fri, 2 Mar 2018 16:00:30 -0800 Subject: [PATCH] Fix lint --- core/blockly.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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]);