Cache the window selector as 'viewport' in an attempt to improve performance.

(imported from commit 3e01382260938737fbee663f6a9e94ad495ef21e)
This commit is contained in:
Waseem Daher
2012-10-15 22:07:52 -04:00
parent 45629a362d
commit b76422d8d0
4 changed files with 3 additions and 12 deletions

View File

@@ -46,7 +46,6 @@ function process_hotkey(code) {
//
// FIXME: this doesn't work for End because get_last_visible()
// always returns a message.
var viewport = $(window);
viewport.scrollTop($("#main_div").outerHeight(true));
}
return process_hotkey;