Skip to content

Commit

Permalink
Apply pull request #13: Added support for specifying a dataType to us…
Browse files Browse the repository at this point in the history
…e with jQuery.ajax

jfhovinne/jFeed#13
  • Loading branch information
scottishwildcat committed Nov 5, 2016
1 parent cc60186 commit 796c029
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RSSMenu.safariextension/jfeed/jfeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jQuery.getFeed = function(options) {
success: null,
failure: null,
error: null,
global: true
global: true,
dataType: "xml",

}, options);

Expand All @@ -37,7 +38,7 @@ jQuery.getFeed = function(options) {
url: options.url,
data: options.data,
cache: options.cache,
dataType: (jQuery.browser.msie) ? "text" : "xml",
dataType: (jQuery.browser.msie) ? "text" : options.dataType,
success: function(xml) {
var feed = new JFeed(xml);
if (jQuery.isFunction(options.success)) options.success(feed);
Expand Down

0 comments on commit 796c029

Please sign in to comment.