From 89d05b8b929df66884bd10295a48fe0753b962e9 Mon Sep 17 00:00:00 2001 From: Colin 't Hart Date: Thu, 22 Feb 2024 18:43:47 +0100 Subject: [PATCH] Replace isFunction which is removed in jQuery 4.0 --- src/facebox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/facebox.js b/src/facebox.js index 392adf8..c7e2f2b 100644 --- a/src/facebox.js +++ b/src/facebox.js @@ -72,7 +72,7 @@ if (data.ajax) fillFaceboxFromAjax(data.ajax, klass) else if (data.image) fillFaceboxFromImage(data.image, klass) else if (data.div) fillFaceboxFromHref(data.div, klass) - else if ($.isFunction(data)) data.call($) + else if (typeof data === "function") data.call($) else $.facebox.reveal(data, klass) }