Search code examples
ember.jsember-data

IE9: store.find is failing


I can't seem to fetch new data in Internet Explorer 9. For the purpose of an example I test the store this way:

App.__container__.lookup('store:main').find('style')

The only error I receive is the following:

SCRIPT5022: Error: Assertion Failed: [object Object]

Does Ember-data works out of the box (without polyfills, ...) in Internet Explorer 9?

versions:

  • Ember: 1.9.1
  • Ember-data: 1.0.0-beta.12

Solution

  • Problem solved. When doing an AJAX request with jQuery, this normally happens through the XMLHttpRequest object.

    On IE8-9, this object is not present, instead it uses XDomainRequest. The simplest fix for this is adding: https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest.