diff --git a/examples/mobile-jq.js b/examples/mobile-jq.js index 614492e9bf..a7ef681b92 100644 --- a/examples/mobile-jq.js +++ b/examples/mobile-jq.js @@ -28,11 +28,8 @@ $(document).ready(function() { initLayerList(); } } - $('#mappage').live('pageshow', function() { - $('#mappage').die('pageshow', arguments.callee); - fixContentHeight(); - }); $(window).bind("orientationchange resize pageshow", fixContentHeight); + document.body.onload = fixContentHeight; // Map zoom $("#plus").click(function(){