moved $body swipe to domready

This commit is contained in:
scottjehl 2010-09-11 08:24:36 -04:00
parent f9ac0d95eb
commit 8cde8a084b

View file

@ -383,12 +383,6 @@
.find('.ui-btn-text').text(backBtnText);
});
};
//swipe right always triggers a back
$('body').bind('swiperight.jqm',function(){
history.go(-1);
return false;
});
//dom-ready
$(function(){
@ -458,7 +452,13 @@
//setTimeout(function(){ pageLoading(true); }, 3000);
//update orientation
updateOrientation();
updateOrientation();
//swipe right always triggers a back
$body.bind('swiperight.jqm',function(){
history.go(-1);
return false;
});
//some debug stuff for the events pages
$('body').bind('scrollstart scrollstop swipe swipeleft swiperight tap taphold turn',function(e){