From e9f1b7a634a2338b255b4b74c1189c8092be2d53 Mon Sep 17 00:00:00 2001 From: Sam Gammon Date: Thu, 8 Apr 2021 23:06:39 -0700 Subject: [PATCH] Replace isFunction `goog.isFunction` was recently deprecated and removed, so this changeset replaces it with `typeof v === 'function'`. --- event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event.js b/event.js index 35663e2..4330bdb 100644 --- a/event.js +++ b/event.js @@ -663,7 +663,7 @@ jsaction.event.recreateTouchEventAsClick = function(event) { click['type'] = jsaction.EventType.CLICK; for (const p in event) { const v = event[p]; - if (p != 'type' && p != 'srcElement' && !goog.isFunction(v)) { + if (p != 'type' && p != 'srcElement' && !(typeof v === 'function')) { click[p] = v; } }