I have run into problem under IE11. It throws an error
Expected: ":"
for that line of code:
this.aAttachments = MessageStore.message().attachments().map(({fileName,mimeType,fileType,fileNameExt,download}) => [fileName,mimeType,fileType,fileNameExt,download]);
in the part
{fileName,mimeType,fileType,fileNameExt,download}
instead of commas.
Documentation says that IE support fully map since IE9
Any clue on that?
MessageStore.message().attachments()return anArrayor an "array-like" object? In IE, you can only call.map()on true arrays, not "array-like" objects. If the return value is an array-like object, you'll need to explicitly convert it to an Array withArray.prototype.slice.call(MessageStore.message().attachments()).:for a key:value pair because it's the only thing the parser could possibly expect.[{key:value, key1:value},{key:value, key1:value},...]