Increased scope of lint check, removed some issues

This commit is contained in:
knsv
2014-12-13 20:58:53 +01:00
parent 48af3b3590
commit 7fc2a0a544
4 changed files with 9 additions and 13 deletions

View File

@@ -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);