Permalink
Browse files

Update jQuery references for no-conflict.

  • Loading branch information...
1 parent efb87d8 commit 3c8835a5c9857d18b6f9a0f222e50939960210b4 @MainframeEnzo MainframeEnzo 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 3c8835a

Please sign in to comment.