Permalink
Browse files

Fix Gecko breakage.

  • Loading branch information...
protz committed Nov 7, 2012
1 parent 9f2d9ee commit 460f89dbcedebc5d06f58766296d769838fb0e96
Showing with 5 additions and 1 deletion.
  1. +5 −1 modules/message.js
View
@@ -892,8 +892,12 @@ Message.prototype = {
new mainWindow.AttachmentInfo(
att.contentType, att.url, att.name, self._uri, att.isExternal, 42
));
- for each (let [i, attNode] in Iterator(attachmentNodes)) {
+ /* So for some strange reason, Gecko decided that Iterator would now yield
+ * both the element's id attribute and its index in the collection... which
+ * screws us up, so let's forget about using modern JS features. */
+ for (let i = 0; i < attachmentNodes.length; ++i) {
let j = i;
+ let attNode = attachmentNodes[j];
let att = this._attachments[j];
// For the context menu event handlers

0 comments on commit 460f89d

Please sign in to comment.