Permalink
Browse files

Init: Improve compatibility of rendering fallback.

  • Loading branch information...
1 parent 0d8f100 commit 8bb06741d1732da99edbfe6ab2b53d154754c8f5 @jaspermdegroot jaspermdegroot committed Nov 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/jquery.mobile.init.js
View
@@ -38,7 +38,9 @@ define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.support", "./jquery
// This is a fallback. If anything goes wrong (JS errors, etc), or events don't fire,
// this ensures the rendering class is removed after 5 seconds, so content is visible and accessible
- setTimeout( hideRenderingClass, 5000 );
+ setTimeout( function() {
+ hideRenderingClass();
+ }, 5000 );
$.extend( $.mobile, {
// find and enhance the pages in the dom and transition to the first page.

0 comments on commit 8bb0674

Please sign in to comment.