From 8f03492b89ea6bce38f69f14bc87f86754be3388 Mon Sep 17 00:00:00 2001 From: David Balch Date: Tue, 2 Dec 2014 11:17:33 +0000 Subject: [PATCH] MDL-46116 mod_imscp: Fix some jshint issues. --- mod/imscp/module.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/mod/imscp/module.js b/mod/imscp/module.js index a3ee2d13947..39ab383dcf2 100644 --- a/mod/imscp/module.js +++ b/mod/imscp/module.js @@ -33,10 +33,6 @@ M.mod_imscp.init = function(Y) { Y.use('yui2-resize', 'yui2-dragdrop', 'yui2-container', 'yui2-button', 'yui2-layout', 'yui2-treeview', 'yui2-json', 'yui2-event', function(Y) { - var imscp_activate_item_by_index = function(index) { - imscp_activate_item(Y.YUI2.widget.TreeView.getNode('imscp_tree', index)); - } - var imscp_activate_item = function(node) { if (!node) { return; @@ -45,13 +41,14 @@ M.mod_imscp.init = function(Y) { imscp_current_node.highlight(); var content = new Y.YUI2.util.Element('imscp_content'); + var obj; if (node.href) { try { // First try IE way - it can not set name attribute later // and also it has some restrictions on DOM access from object tag. - var obj = document.createElement('