Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #71 from franklovecchio/master
Browse files Browse the repository at this point in the history
jQuery reference update
  • Loading branch information
longlho committed Mar 11, 2013
2 parents efb87d8 + 3c8835a commit c4dde30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/date.js
Expand Up @@ -139,7 +139,7 @@
// - `error`: error callback function // - `error`: error callback function
// Returns response from URL if async is false, otherwise the AJAX request object itself // Returns response from URL if async is false, otherwise the AJAX request object itself
var _transport = function (opts) { var _transport = function (opts) {
if ((!fleegix || typeof fleegix.xhr === 'undefined') && (!$ || typeof $.ajax === 'undefined')) { if ((!fleegix || typeof fleegix.xhr === 'undefined') && (!jQuery || typeof jQuery.ajax === 'undefined')) {
throw new Error('Please use the Fleegix.js XHR module, jQuery ajax, Zepto ajax, or define your own transport mechanism for downloading zone files.'); throw new Error('Please use the Fleegix.js XHR module, jQuery ajax, Zepto ajax, or define your own transport mechanism for downloading zone files.');
} }
if (!opts) return; if (!opts) return;
Expand All @@ -148,7 +148,7 @@
if (!opts.async) { if (!opts.async) {
return fleegix && fleegix.xhr return fleegix && fleegix.xhr
? fleegix.xhr.doReq({ url: opts.url, async: false }) ? fleegix.xhr.doReq({ url: opts.url, async: false })
: $.ajax({ url : opts.url, async : false }).responseText; : jQuery.ajax({ url : opts.url, async : false }).responseText;
} }
return fleegix && fleegix.xhr return fleegix && fleegix.xhr
? fleegix.xhr.send({ ? fleegix.xhr.send({
Expand All @@ -157,7 +157,7 @@
handleSuccess : opts.success, handleSuccess : opts.success,
handleErr : opts.error handleErr : opts.error
}) })
: $.ajax({ : jQuery.ajax({
url : opts.url, url : opts.url,
dataType: 'text', dataType: 'text',
method : 'GET', method : 'GET',
Expand Down

0 comments on commit c4dde30

Please sign in to comment.