Use cached selector for $(window).

Mostly for consistency with the rest of the code around here.

(imported from commit 87539fea96286e1563624efd2a4800df88f2199c)
This commit is contained in:
Waseem Daher
2013-01-09 15:29:44 -05:00
parent 96e66d4c5f
commit 10db1b30f1

View File

@@ -133,7 +133,7 @@ function resizehandler(e) {
sidebar_nav.width(''); sidebar_nav.width('');
} }
$("#bottom_whitespace").height($(window).height() * 0.4); $("#bottom_whitespace").height(viewport.height() * 0.4);
$("#main_div").css('min-height', viewport.height()); $("#main_div").css('min-height', viewport.height());
// This function might run onReady (if we're in a narrow window), // This function might run onReady (if we're in a narrow window),