summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-13 05:23:44 +0100
committerAndrew Dolgov <[email protected]>2006-08-13 05:23:44 +0100
commitdaa4f947f223ea458ccacf6b7e39bc49eb2eb325 (patch)
tree9535b0052e883e27964d80f50ecdb57125ce7d62 /functions.js
parente59a2f12de5c95b63c8e0a40e575151fd014e0ac (diff)
check if moveToPost is defined before parsing n/p hotkeys (2)
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.js b/functions.js
index aec6a82c0..8e191c8d0 100644
--- a/functions.js
+++ b/functions.js
@@ -203,13 +203,13 @@ function hotkey_handler(e) {
}
if (keycode == 78 || keycode == 40) { // n, down
- if (typeof h_ctx.moveToPost != undefined) {
+ if (h_ctx.moveToPost != undefined) {
return h_ctx.moveToPost('next');
}
}
if (keycode == 80 || keycode == 38) { // p, up
- if (typeof h_ctx.moveToPost != undefined) {
+ if (h_ctx.moveToPost != undefined) {
return h_ctx.moveToPost('prev');
}
}