Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update jQuery references for no-conflict.

  • Loading branch information...
commit 3c8835a5c9857d18b6f9a0f222e50939960210b4 1 parent efb87d8
@franklovecchio franklovecchio authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/date.js
View
6 src/date.js
@@ -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',
Please sign in to comment.
Something went wrong with that request. Please try again.