From 3aab50786a6a61900aeecd458f065140ae239f4c Mon Sep 17 00:00:00 2001 From: WINKLER Fabien Date: Thu, 6 Oct 2022 16:55:58 +0200 Subject: [PATCH] Feat: add 'isJSON' util function --- src/utils.js | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/src/utils.js b/src/utils.js index e4464a083..5c3c7f8e7 100644 --- a/src/utils.js +++ b/src/utils.js @@ -346,16 +346,30 @@ var domToString = function(d) { return tmp.innerHTML; }; -var logError = function(message, options){ - if(!options) options = {}; - var component = "Selectize"; +var logError = function (message, options) { + if (!options) options = {}; + var component = "Selectize"; - console.error(component + ": " + message) + console.error(component + ": " + message) - if(options.explanation){ - // console.group is undefined in