From 8321919ab90ef0249e20a6e35f3afcb0b04c0566 Mon Sep 17 00:00:00 2001 From: Yuri Ratanov Date: Sun, 19 Jan 2020 18:52:07 +0700 Subject: [PATCH] allow disabling via config --- htmlbars-plugins/touch-action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htmlbars-plugins/touch-action.js b/htmlbars-plugins/touch-action.js index 15ae4ac..66de80a 100644 --- a/htmlbars-plugins/touch-action.js +++ b/htmlbars-plugins/touch-action.js @@ -146,7 +146,7 @@ function sexpr(node) { function setConfigValues(config) { config = config || {}; - touchActionOnAction = config.touchActionOnAction || touchActionOnAction; + touchActionOnAction = typeof config.touchActionOnAction === 'undefined' ? touchActionOnAction : config.touchActionOnAction; touchActionAttributes = config.touchActionAttributes || touchActionAttributes; touchActionSelectors = config.touchActionSelectors || touchActionSelectors; touchActionProperties = config.touchActionProperties || touchActionProperties;