mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 09:20:03 +02:00
Increased scope of lint check, removed some issues
This commit is contained in:
@@ -129,7 +129,7 @@ exports.setClickEvent = function (id,functionName) {
|
||||
var elem = document.getElementById(id2);
|
||||
if (elem !== null) {
|
||||
elem.onclick = function () {
|
||||
eval(functionName + '(\'' + id2 + '\')');
|
||||
eval(functionName + '(\'' + id2 + '\')'); // jshint ignore:line
|
||||
};
|
||||
}
|
||||
});
|
||||
@@ -142,7 +142,7 @@ exports.setClickEvent = function (id,functionName) {
|
||||
var elem = document.getElementById(id);
|
||||
if(elem !== null){
|
||||
//console.log('id was NOT null: '+id);
|
||||
elem.onclick = function(){eval(functionName+'(\'' + id + '\')');};
|
||||
elem.onclick = function(){eval(functionName+'(\'' + id + '\')');}; // jshint ignore:line
|
||||
}
|
||||
else{
|
||||
//console.log('id was null: '+id);
|
||||
|
Reference in New Issue
Block a user