Pārlūkot izejas kodu

REALLY remove loading... ? :smile:

Kevin Heinicke 10 gadi atpakaļ
vecāks
revīzija
1a646e26b1
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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 ){