Skip to content

Commit

Permalink
wip: console.js.erb: remove spaces from if-statements and for-statements
Browse files Browse the repository at this point in the history
  • Loading branch information
sh19910711 committed Jun 16, 2015
1 parent 5fee58d commit ac5843f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/web_console/templates/console.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ function isNodeList(el) {
}

function addClass(el, className) {
if ( isNodeList(el) ) {
for ( var i = 0; i < el.length; ++ i ) {
if (isNodeList(el)) {
for (var i = 0; i < el.length; ++ i) {
addClass(el[i], className);
}
} else {
Expand All @@ -450,8 +450,8 @@ function removeAllChildren(el) {
}

function findChild(el, className) {
for ( var i = 0; i < el.childNodes.length; ++ i ) {
if ( hasClass(el.childNodes[i], className) ) {
for (var i = 0; i < el.childNodes.length; ++ i) {
if (hasClass(el.childNodes[i], className)) {
return el.childNodes[i];
}
}
Expand Down

0 comments on commit ac5843f

Please sign in to comment.