浏览代码

REALLY remove loading... ? :smile:

Kevin Heinicke 10 年之前
父节点
当前提交
1a646e26b1
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      js/script.js

+ 3 - 1
js/script.js

@@ -28,7 +28,9 @@ $(function(){
   $( "#demoCanvas" ).on( "swipe", swipeHandler );
   $.event.special.swipe.horizontalDistanceThreshold = 1;
   $.event.special.swipe.verticalDistanceThreshold = 1000;
-  $.mobile.loader.prototype.options.disabled = true;
+    $( document ).on( "mobileinit", function() {
+        $.mobile.loader.prototype.options.disabled = true;
+    });
  
   // Callback function references the event target and adds the 'swipe' class to it
   function swipeHandler( event ){