Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #10 from rwldrn/9

Fixes #9. Removes 2 year old browser sniffing hack
  • Loading branch information...
commit 375d861b8b0567b21d4a42ba0d84ee1794248baf 2 parents 115dd95 + a21994a
@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.