Standard fixes

This commit is contained in:
knsv 2019-07-22 05:23:03 -07:00
parent 0478e4217b
commit cf686c445c
3 changed files with 2 additions and 3 deletions

View File

@ -216,7 +216,7 @@ export const setLink = function (ids, linkStr, tooltip) {
ids.split(',').forEach(function (id) {
if (typeof vertices[id] !== 'undefined') {
if (config.securityLevel === 'strict') {
vertices[id].link = sanitizeUrl(linkStr) //.replace(/javascript:.*/g, '')
vertices[id].link = sanitizeUrl(linkStr) // .replace(/javascript:.*/g, '')
} else {
vertices[id].link = linkStr
}

View File

@ -1631,7 +1631,7 @@ describe('when parsing ', function () {
})
it('it should be able to parse a \'=\'', function () {
charTest('=')
charTest('=','=')
})
it('it should be able to parse a \'&\'', function () {
charTest('&')

View File

@ -504,7 +504,6 @@ const pushFun = function (id, callbackFunction) {
// const elem = d3.select(element).select(`[id="${id}-text"]`)
const elem = document.querySelector(`[id="${id}-text"]`)
if (elem !== null) {
elem.addEventListener('click', function () {
callbackFunction()
})