lint compliance

This commit is contained in:
yflory 2024-03-07 18:40:10 +01:00
parent 67cdadca1f
commit 4ba052d090
1 changed files with 0 additions and 12 deletions

View File

@ -1550,18 +1550,6 @@ define([
if (typeof config !== "object" || !Array.isArray(config.options)) { return; } 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"); } 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 // Container
var $container = $(config.container); var $container = $(config.container);
var containerConfig = { var containerConfig = {