From b2c6ccc91205ef1b6e2a6ddc720458af443f0b84 Mon Sep 17 00:00:00 2001 From: Rory Hardy Date: Wed, 7 Aug 2013 22:40:07 -0500 Subject: [PATCH] Minor update Made sure all vars are declared with the var keyword. modified: plugin/leap/leap.js --- plugin/leap/leap.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugin/leap/leap.js b/plugin/leap/leap.js index b2f91de..8ba0063 100644 --- a/plugin/leap/leap.js +++ b/plugin/leap/leap.js @@ -37,8 +37,7 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(ab||a===void 0)return 1;if(a 0 && frame.fingers.length < 3 ) { // Invert direction and multiply by 3 for greater effect. - var size = -3 * frame.fingers[0].tipPosition[2]; + size = -3 * frame.fingers[0].tipPosition[2]; if( size < config.pointerSize ) { size = config.pointerSize; @@ -74,9 +73,9 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a