Skip to content

Commit

Permalink
Merge pull request #643 from junaruga/hotfix/indent-and-typo-moveTimeout
Browse files Browse the repository at this point in the history
Fix indent and typo from moveTimout to moveTimeout.
  • Loading branch information
hsbt authored Aug 7, 2018
2 parents 296448f + d05e626 commit dab39ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/rdoc/generator/template/json_index/js/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ Navigation = new function() {
}
break;
case 13: //Event.KEY_RETURN:
if (this.$current)
e.preventDefault();
this.select(this.$current);
if (this.$current) e.preventDefault();
this.select(this.$current);
break;
}
if (e.ctrlKey && e.shiftKey) this.select(this.$current);
Expand All @@ -80,7 +79,7 @@ Navigation = new function() {
var go = function() {
if (!_this.moveTimeout) return;
_this[isDown ? 'moveDown' : 'moveUp']();
_this.moveTimout = setTimeout(go, 100);
_this.moveTimeout = setTimeout(go, 100);
}
this.moveTimeout = setTimeout(go, 200);
}
Expand Down

0 comments on commit dab39ac

Please sign in to comment.