Skip to content

Commit dab39ac

Browse files
authored
Merge pull request #643 from junaruga/hotfix/indent-and-typo-moveTimeout
Fix indent and typo from moveTimout to moveTimeout.
2 parents 296448f + d05e626 commit dab39ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/rdoc/generator/template/json_index/js/navigation.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ Navigation = new function() {
5959
}
6060
break;
6161
case 13: //Event.KEY_RETURN:
62-
if (this.$current)
63-
e.preventDefault();
64-
this.select(this.$current);
62+
if (this.$current) e.preventDefault();
63+
this.select(this.$current);
6564
break;
6665
}
6766
if (e.ctrlKey && e.shiftKey) this.select(this.$current);
@@ -80,7 +79,7 @@ Navigation = new function() {
8079
var go = function() {
8180
if (!_this.moveTimeout) return;
8281
_this[isDown ? 'moveDown' : 'moveUp']();
83-
_this.moveTimout = setTimeout(go, 100);
82+
_this.moveTimeout = setTimeout(go, 100);
8483
}
8584
this.moveTimeout = setTimeout(go, 200);
8685
}

0 commit comments

Comments
 (0)