make sure stickyfooter is defined before checking length

This commit is contained in:
scottjehl 2010-10-04 19:14:19 -04:00
parent dbd5e6cfb7
commit ecbe18d809

View file

@ -64,7 +64,7 @@ $.fixedToolbars = (function(){
//after page is shown, append footer to new page
$('.ui-page').live('pageshow', function(event, ui){
if( stickyFooter.length ){
if( stickyFooter && stickyFooter.length ){
stickyFooter.appendTo(event.target);
setTop(stickyFooter);
}