From c57617dac175127613bd5fc43b9ba40a7dcb93c0 Mon Sep 17 00:00:00 2001 From: David Balch Date: Wed, 19 Nov 2014 15:17:29 +0000 Subject: [PATCH] MDL-46116 mod_imscp: Fix some jshint issues. --- mod/imscp/module.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/mod/imscp/module.js b/mod/imscp/module.js index 5b072f7cc61..f3ce6ea94d1 100644 --- a/mod/imscp/module.js +++ b/mod/imscp/module.js @@ -35,7 +35,7 @@ M.mod_imscp.init = 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) { @@ -45,20 +45,21 @@ 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('