From 190732de1395f3234f9384207a3e2f247acd4c47 Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Fri, 20 Oct 2017 20:45:21 -0400 Subject: [PATCH] Whoops, referenced "dir" not "val" --- lib/intval/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/intval/index.js b/lib/intval/index.js index 8dd12b4..e0811b8 100644 --- a/lib/intval/index.js +++ b/lib/intval/index.js @@ -246,7 +246,7 @@ intval.setDir = function (val = true) { return log.warn('Direction must be represented as either true or false') } intval._state.dir = val - log.info('setDir', { direction : dir ? 'forward' : 'backward' }) + log.info('setDir', { direction : val ? 'forward' : 'backward' }) } intval.setTime = function (val = 0) { intval._state.frame.time = val