From 4ba052d090b37f3e1aab9d24f4175180fef5a606 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 7 Mar 2024 18:40:10 +0100 Subject: [PATCH] lint compliance --- www/common/common-ui-elements.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index ab619490a..e8de5d2ef 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1550,18 +1550,6 @@ define([ if (typeof config !== "object" || !Array.isArray(config.options)) { return; } if (config.feedback && !config.common) { return void console.error("feedback in a dropdown requires sframe-common"); } - var isElement = function (o) { - return /HTML/.test(Object.prototype.toString.call(o)) && - typeof(o.tagName) === 'string'; - }; - var allowedTags = ['a', 'li', 'p', 'hr', 'div']; - var isValidOption = function (o) { - if (typeof o !== "object") { return false; } - if (isElement(o)) { return true; } - if (!o.tag || allowedTags.indexOf(o.tag) === -1) { return false; } - return true; - }; - // Container var $container = $(config.container); var containerConfig = {