Skip to content

Commit

Permalink
Fix 3 JSCS Errors in examples.js and disclosure
Browse files Browse the repository at this point in the history
  • Loading branch information
mcking65 committed Mar 14, 2017
1 parent 4cc308d commit b655696
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/disclosure/js/disclosureButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ButtonExpand.prototype.handleKeydown = function (event) {
switch (event.keyCode) {

case this.keyCode.RETURN:

this.toggleExpand();

event.stopPropagation();
Expand Down
6 changes: 4 additions & 2 deletions examples/js/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 + '<br/>' + spaces + '&nbsp;&nbsp;' + '&lt;--&nbsp;&nbsp;' + n.nodeValue + "--&gt;";
location.innerHTML = location.innerHTML + '<br/>' + spaces + '&nbsp;&nbsp;' + '&lt;--&nbsp;&nbsp;' + n.nodeValue + '--&gt;';
}
count++;
break;
Expand Down

0 comments on commit b655696

Please sign in to comment.