victorquinn/Backbone.CrossDomain

Conflicts when not using json dataType

maximebedard opened this issue · 3 comments

When using Backbone.sync with dataType: 'jsonp', the library changes the dataType to json an tries to make a CORS call and get the following error on IE9.

image

Would it be usefull to early return when such a happen?

if (options.dataType === 'jsonp') {
  return Backbone.vanillaSync.apply(this, arguments);
}

+1

I got same issue

i created a pull request fixing this #17

Fixed with #17 thanks @mcallew