mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
fixed binding of orientationchange event (was on document, but only works on window). Moreover, it is now bound using 'bind' and not 'live'
This commit is contained in:
parent
4497d138f2
commit
04e75b07cd
1 changed files with 1 additions and 1 deletions
|
|
@ -55,6 +55,6 @@ $(":jqmData(role='page')").live("pageshow", function(event) {
|
|||
ResizePageContentHeight(event.target);
|
||||
});
|
||||
|
||||
$(document).live("orientationchange", function(event) {
|
||||
$(window).bind("orientationchange", function(event) {
|
||||
ResizePageContentHeight($(".ui-page"));
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue