"max-len": "off",
"max-lines": "off",
"max-lines-per-function": "off",
- "new-cap": "off",
"no-inline-comments": "off",
"no-invalid-this": "off",
"no-underscore-dangle": "off",
var htmlEscaper = /[&<>"'/`=]/g;
var symbolDescriptions = {};
- var EscapeHTML = function (string) {
+ var escapeHTML = function (string) {
return (String(string)).replace(htmlEscaper, function (match) {
return htmlEscapes[match];
});
};
var escape_HTML_array = function (arr) {
- arr.forEach(function (d, i) { arr[i] = EscapeHTML(d); });
+ arr.forEach(function (d, i) { arr[i] = escapeHTML(d); });
};
function unix_time_format(tm) {
if (!sym.name) {
sym.name = key;
}
- sym.name = EscapeHTML(sym.name);
+ sym.name = escapeHTML(sym.name);
if (sym.description) {
- sym.description = EscapeHTML(sym.description);
+ sym.description = escapeHTML(sym.description);
}
if (sym.options) {
break;
default:
if (typeof (item[prop]) === "string") {
- item[prop] = EscapeHTML(item[prop]);
+ item[prop] = escapeHTML(item[prop]);
}
}
}
define(["jquery", "d3pie", "visibility", "nprogress", "app/stats", "app/graph", "app/config",
"app/symbols", "app/history", "app/upload"],
// eslint-disable-next-line max-params
-function ($, d3pie, visibility, NProgress, tab_stat, tab_graph, tab_config,
+function ($, D3pie, visibility, NProgress, tab_stat, tab_graph, tab_config,
tab_symbols, tab_history, tab_upload) {
"use strict";
// begin
})
);
} else {
- obj = new d3pie(id,
+ obj = new D3pie(id,
$.extend({}, {
header: {
title: {