documentcloud/backbone — Issue #827: IE 7,8,9 The object don't accept this property o method. Line 1160
Author: msdark
Created: 2011-12-29 16:17:05+00:00
State: open

I'm testing my backbone application.
I use backbone with coffeescript and requirejs.

I chrome the application run without any problem, but in IE (7,8 y 9) give and error in lin 1160

// Wrap an optional error callback with a fallback error event.
var wrapError = function(onError, model, options) {
return function(model, resp) {
var resp = model === model ? resp : model;
if (onError) {
onError(model, resp, options);
} else {
model.trigger('error', model, resp, options);
}
};
};