From fd4af76494cbf03068137f78ecf314fa3285fcd9 Mon Sep 17 00:00:00 2001 From: J-Brk Date: Thu, 16 Jun 2022 18:37:58 +0200 Subject: [PATCH] Fixed dependency on jQuery.type (depricated) Changed jQuery.type to typeof --- dist/jBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/jBox.js b/dist/jBox.js index 8fec5f3..17a9cf9 100755 --- a/dist/jBox.js +++ b/dist/jBox.js @@ -195,7 +195,7 @@ function jBoxWrapper(jQuery) { // Set the jBox type - jQuery.type(type) == 'string' && (this.type = type); + typeof(type) === 'string' && (this.type = type); // Checks if the user is on a touch device, borrowed from https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touchevents.js