From b6556968f929626002461574699c33bde645eecd Mon Sep 17 00:00:00 2001 From: Matt King Date: Tue, 14 Mar 2017 15:46:30 -0700 Subject: [PATCH] Fix 3 JSCS Errors in examples.js and disclosure --- examples/disclosure/js/disclosureButton.js | 2 +- examples/js/examples.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/disclosure/js/disclosureButton.js b/examples/disclosure/js/disclosureButton.js index ae2e5b9516..cfcd0ec40f 100644 --- a/examples/disclosure/js/disclosureButton.js +++ b/examples/disclosure/js/disclosureButton.js @@ -83,7 +83,7 @@ ButtonExpand.prototype.handleKeydown = function (event) { switch (event.keyCode) { case this.keyCode.RETURN: - + this.toggleExpand(); event.stopPropagation(); diff --git a/examples/js/examples.js b/examples/js/examples.js index ee9d8173f3..108dc5de58 100644 --- a/examples/js/examples.js +++ b/examples/js/examples.js @@ -115,7 +115,9 @@ aria.widget.SourceCode.prototype.createCode = function (location, spaces, node, var i, s; var count = 0; - if (typeof first !== 'boolean') first = false; + if (typeof first !== 'boolean') { + first = false; + } if (!first) { var nodeNameStr = node.nodeName.toLowerCase(); @@ -164,7 +166,7 @@ aria.widget.SourceCode.prototype.createCode = function (location, spaces, node, case Node.COMMENT_NODE: if (hasText(n.nodeValue)) { - location.innerHTML = location.innerHTML + '
' + spaces + '  ' + '<--  ' + n.nodeValue + "-->"; + location.innerHTML = location.innerHTML + '
' + spaces + '  ' + '<--  ' + n.nodeValue + '-->'; } count++; break;