Permalink
Browse files

Merge pull request #71 from franklovecchio/master

jQuery reference update
  • Loading branch information...
2 parents efb87d8 + 3c8835a commit c4dde30ff773c9f371b4d57522acbae2dd4c3324 @longlho longlho committed Mar 11, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/date.js
View
@@ -139,7 +139,7 @@
// - `error`: error callback function
// Returns response from URL if async is false, otherwise the AJAX request object itself
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.');
}
if (!opts) return;
@@ -148,7 +148,7 @@
if (!opts.async) {
return fleegix && fleegix.xhr
? 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
? fleegix.xhr.send({
@@ -157,7 +157,7 @@
handleSuccess : opts.success,
handleErr : opts.error
})
- : $.ajax({
+ : jQuery.ajax({
url : opts.url,
dataType: 'text',
method : 'GET',

0 comments on commit c4dde30

Please sign in to comment.