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:
Matthias Derer 2011-06-08 17:18:05 +02:00
parent 4497d138f2
commit 04e75b07cd

View file

@ -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"));
});