Skip to content

Commit 3316182

Browse files
committed
Merge pull request jquery-archive#2962 from eddiemonge/patch-5
Wrong OR operator to compare values
2 parents 1d5f2af + 4f354ba commit 3316182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

experiments/scrollview/scrollview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
function ResizePageContentHeight(page) {
22
var $page = $(page),
33
$content = $page.children( ".ui-content" ),
4-
hh = $page.children( ".ui-header" ).outerHeight() : 0,
5-
fh = $page.children( ".ui-footer" ).outerHeight() : 0,
4+
hh = $page.children( ".ui-header" ).outerHeight() || 0,
5+
fh = $page.children( ".ui-footer" ).outerHeight() || 0,
66
pt = parseFloat($content.css( "padding-top" )),
77
pb = parseFloat($content.css( "padding-bottom" )),
88
wh = window.innerHeight;

0 commit comments

Comments
 (0)