Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #9. Removes 2 year old browser sniffing hack

  • Loading branch information...
commit a21994a66e4e8f13811f0a54783cbd235b5f17f2 1 parent 115dd95
@rwaldron authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 jquery.hive.pollen.js
View
12 jquery.hive.pollen.js
@@ -571,13 +571,13 @@
*/
ajax: {
_options: {
- url: "",
- data: "",
+ url: "",
+ data: "",
dataType: "",
- success: Pollen.noop, //$.fn,//
- type: "GET",
+ success: Pollen.noop, //$.fn,//
+ type: "GET",
// TODO: FIX THIS.
- sync: navigator.userAgent.toLowerCase().indexOf("safari/") != -1 ? false : true,
+ async: true,
xhr: function() {
return new XMLHttpRequest();
}
@@ -621,7 +621,7 @@
if (_xhr) {
Pollen.ajax._confXHR(_xhr, options, json, ajaxSuccess);
- _xhr.open(options.type, options.url, options.sync);
+ _xhr.open(options.type, options.url, options.async);
_xhr.setRequestHeader("X-Requested-With", "Worker-XMLHttpRequest");
_xhr.setRequestHeader("X-Worker-Hive", "Pollen-JS" );
Please sign in to comment.
Something went wrong with that request. Please try again.