Fixed event binding for fixed toolbars.

This commit is contained in:
Scott González 2010-09-14 22:37:46 -04:00
parent c2beace760
commit 0304159f63

View file

@ -72,7 +72,7 @@ $.fixedToolbars = (function(){
return thisel.is('.ui-header') ? (thisTop + thisHeight <= fromTop) : (thisTop > fromTop + screenHeight);
}
$(function() {
$(document)
.bind('tap',function(e){
if( !$(e.target).closest(ignoreTargets).length ){
@ -91,7 +91,7 @@ $.fixedToolbars = (function(){
showAfterScroll = false;
}
});
});
//hide on resize?
$(window).resize(function(){ $.fixedToolbars.hide(true); });