From cb6d88591776dc20dc5e250723f1f93a890cd09b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 27 Jan 2015 09:23:58 -0500 Subject: [PATCH] APIExplorer - lint js --- templates/CRM/Admin/Page/APIExplorer.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index 04f144322f..5723df8cac 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -44,9 +44,8 @@ /** * Add a new "options" row - * @param name */ - function addOptionField(name) { + function addOptionField() { if ($('.api-options-row', '#api-params').length) { $('.api-options-row:last', '#api-params').after($(optionsTpl({}))); } else { @@ -187,9 +186,8 @@ /** * Called after getActions to populate action list - * @param el */ - function populateActions(el) { + function populateActions() { var val = $('#api-action').val(); $('#api-action').removeClass('loading').select2({ data: _.transform(actions.values, function(ret, item) {ret.push({text: item, id: item});}), @@ -298,6 +296,7 @@ last = val.slice(-1); // Simple types if (val === 'true' || val === 'false' || val === 'null') { + /* jshint evil: true */ return eval(val); } // Quoted strings @@ -453,7 +452,7 @@ smartyStub = false; $.each(params, function(key, value) { var js = JSON.stringify(value); - if (!i++) { + if (!(i++)) { q.php += ", array(\n"; q.json += ", {\n"; } else { -- 2.25.1