Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixes #9. Removes 2 year old browser sniffing hack

  • Loading branch information...
commit a21994a66e4e8f13811f0a54783cbd235b5f17f2 1 parent 115dd95
Rick Waldron authored December 16, 2011

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  jquery.hive.pollen.js
12  jquery.hive.pollen.js
@@ -571,13 +571,13 @@
571 571
     */
572 572
     ajax: {
573 573
       _options: {
574  
-        url:      "",
575  
-        data:     "",
  574
+        url: "",
  575
+        data: "",
576 576
         dataType: "",
577  
-        success:  Pollen.noop, //$.fn,//
578  
-        type:     "GET",
  577
+        success: Pollen.noop, //$.fn,//
  578
+        type: "GET",
579 579
         //  TODO: FIX THIS.
580  
-        sync:     navigator.userAgent.toLowerCase().indexOf("safari/") != -1 ? false : true,
  580
+        async: true,
581 581
         xhr: function()  {
582 582
           return new XMLHttpRequest();
583 583
         }
@@ -621,7 +621,7 @@
621 621
 
622 622
         if (_xhr) {
623 623
           Pollen.ajax._confXHR(_xhr, options, json, ajaxSuccess);
624  
-          _xhr.open(options.type, options.url, options.sync);
  624
+          _xhr.open(options.type, options.url, options.async);
625 625
           _xhr.setRequestHeader("X-Requested-With", "Worker-XMLHttpRequest");
626 626
           _xhr.setRequestHeader("X-Worker-Hive", "Pollen-JS" );
627 627
 

0 notes on commit a21994a

Please sign in to comment.
Something went wrong with that request. Please try again.