Skip to content

Commit

Permalink
dataType for $.ajax cant be null. Fixes #118
Browse files Browse the repository at this point in the history
  • Loading branch information
quirkey committed Jan 21, 2012
1 parent 0ee42ac commit 6ad01ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sammy.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@
}
},

// provide log() override for inside an app that includes the relevant application element_selector
// provide log() override for inside an app that includes the relevant application element_selector
log: function() {
Sammy.log.apply(Sammy, Array.prototype.concat.apply([this.element_selector],arguments));
},
Expand Down Expand Up @@ -1516,7 +1516,7 @@
$.ajax($.extend({
url: location,
data: {},
dataType: is_json ? 'json' : null,
dataType: is_json ? 'json' : 'text',
type: 'get',
success: function(data) {
if (should_cache) {
Expand Down

0 comments on commit 6ad01ad

Please sign in to comment.