Skip to content

Commit 04e75b0

Browse files
committed
fixed binding of orientationchange event (was on document, but only works on window). Moreover, it is now bound using 'bind' and not 'live'
1 parent 4497d13 commit 04e75b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

experiments/scrollview/scrollview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ $(":jqmData(role='page')").live("pageshow", function(event) {
5555
ResizePageContentHeight(event.target);
5656
});
5757

58-
$(document).live("orientationchange", function(event) {
58+
$(window).bind("orientationchange", function(event) {
5959
ResizePageContentHeight($(".ui-page"));
6060
});

0 commit comments

Comments
 (0)