Open a10101992 opened 9 years ago
the issue here is that when modelName
is returned as an empty string, IE doesn't see it as a string, it is undefined
. We monkey patched it so that f (modelName == null) {
used a strict check, f (modelName === null) {
modelUtils.modelName
is below.
ModelUtils.prototype.modelName = function(modelOrCollectionClass) {
return this.underscorize(modelOrCollectionClass.id || modelOrCollectionClass.name);
};
But Function.prototype.name
is unsupported by IE. (ES2015 standard), should be fixed.
I have used rendr app . But it is not working IE browser as i include
as well as this one also https://github.com/es-shims/es5-shim
And I am facing following issue IE browser : Undefined modelName for model
here is code for issue is coming up .
ModelStore.prototype = Object.create(Super.prototype); ModelStore.prototype.constructor = ModelStore;
ModelStore.prototype.set = function(model) { var existingAttrs, id, key, modelName, newAttrs;
id = model.get(model.idAttribute); modelName = this.modelUtils.modelName(model.constructor); if (modelName == null) { throw new Error('Undefined modelName for model'); }