From 91b7553d6ce0bd81a654043ee8c912ca3fe40a48 Mon Sep 17 00:00:00 2001 From: Jonathan Protzenko Date: Tue, 28 Apr 2015 06:00:18 -0700 Subject: [PATCH] No tabs! --- content/stub.compose-ui.js | 8 ++++---- modules/conversation.js | 12 ++++++------ modules/message.js | 18 +++++++++--------- modules/monkeypatch.js | 10 +++++----- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/content/stub.compose-ui.js b/content/stub.compose-ui.js index 9ad393c68..5168300da 100644 --- a/content/stub.compose-ui.js +++ b/content/stub.compose-ui.js @@ -684,9 +684,9 @@ ComposeSession.prototype = { draft: function ({ to, cc, bcc }) { let makeTokens = function (aList) { let [list, listEmailAddresses] = parse(aList); - return Array.prototype.map.call(list, function(item, i) { + return Array.prototype.map.call(list, function(item, i) { return asToken(null, item, listEmailAddresses[i], null); - }); + }); }; setupAutocomplete(makeTokens(to), makeTokens(cc), makeTokens(bcc)); self.setupDone(); @@ -919,7 +919,7 @@ AttachmentList.prototype = { _populateUI: function (msgAttachment, data) { let self = this; - let line = $("#quickReplyAttachmentTemplate").tmpl(data); + let line = tmpl("#quickReplyAttachmentTemplate", data); line.find(".openAttachmentLink").click(function () { let url = Services.io.newURI(data.url, null, null); url = url.QueryInterface(Ci.nsIURL); @@ -1214,7 +1214,7 @@ let sendListener = { Log.warn("Plugin returned an error:", e); dumpCallStack(e); }; - } + } }, /** diff --git a/modules/conversation.js b/modules/conversation.js index fe8436992..763e6d6ce 100644 --- a/modules/conversation.js +++ b/modules/conversation.js @@ -174,7 +174,7 @@ let OracleMixIn = { // message if all messages are read), and we expand all unread messages // + the last one (which will probably be unread as well). if (this.scrollMode == Prefs.kScrollUnreadOrLast) { - this.messages.forEach(function ( { message }, i) { + this.messages.forEach(function ( { message }, i) { if (!message.read || i == self.messages.length - 1) expand(message); else @@ -183,7 +183,7 @@ let OracleMixIn = { // In this mode, we scroll to the selected message, and we only expand // the selected message. } else if (this.scrollMode == Prefs.kScrollSelected) { - this.messages.forEach(function( { message }, i) { + this.messages.forEach(function( { message }, i) { if (i == aNeedsFocus) expand(message); else @@ -195,14 +195,14 @@ let OracleMixIn = { break; case Prefs.kExpandAll: - this.messages.forEach(function( { message }) { + this.messages.forEach(function( { message }) { expand(message); - }); + }); break; case Prefs.kExpandNone: this.messages.forEach(function( { message }) { collapse(message); - }); + }); break; default: Log.assert(false, "Unknown value for pref expand_who"); @@ -1080,7 +1080,7 @@ Conversation.prototype = { Array.prototype.forEach.call(messageNodes, function(node, i) { if (i < messageNodes.length) { node.setAttribute("tabindex", i+2); - } + } }); focusedNode.setAttribute("tabindex", "1"); diff --git a/modules/message.js b/modules/message.js index 6984899fc..04c7ad1be 100644 --- a/modules/message.js +++ b/modules/message.js @@ -361,7 +361,7 @@ KeyListener.prototype = { const ConversationKeybindings = { bindings: KeyListener.prototype.keybindings, registerCustomListener : function registerCustomListener(name, func) { - if (this.availableActions.indexOf(name) >= 0) + if (this.availableActions.indexOf(name) >= 0) return false; this.availableActions.push(name); KeyListener.prototype.functions[name] = func; @@ -954,7 +954,7 @@ Message.prototype = { attInfos[j].save(); }); - let maybeViewable = + let maybeViewable = att.contentType.indexOf("image/") === 0 || att.contentType.indexOf("text/") === 0 ; @@ -1361,10 +1361,10 @@ Message.prototype = { let originalScroll = this._domNode.ownerDocument.documentElement.scrollTop; let msgWindow = topMail3Pane(this).msgWindow; let self = this; - + for (let h of getHooks()) { try { - if (typeof(h.onMessageBeforeStreaming) == "function") + if (typeof(h.onMessageBeforeStreaming) == "function") h.onMessageBeforeStreaming(this); } catch (e) { Log.warn("Plugin returned an error:", e); @@ -1449,7 +1449,7 @@ Message.prototype = { // fonts and stuff. for (let h of getHooks()) { try { - if (typeof(h.onMessageStreamed) == "function") + if (typeof(h.onMessageStreamed) == "function") h.onMessageStreamed(self._msgHdr, self._domNode, msgWindow, self); } catch (e) { Log.warn("Plugin returned an error:", e); @@ -1601,12 +1601,12 @@ Message.prototype = { OnStopRunningUrl: function () {}, QueryInterface: XPCOMUtils.generateQI([Ci.nsISupports, Ci.nsIUrlListener]) }; - + /** * When you want a message displayed.... * * @param in aMessageURI Is a uri representing the message to display. - * @param in aDisplayConsumer Is (for now) an nsIDocShell which we'll use to load + * @param in aDisplayConsumer Is (for now) an nsIDocShell which we'll use to load * the message into. * XXXbz Should it be an nsIWebNavigation or something? * @param in aMsgWindow @@ -1810,13 +1810,13 @@ function MessageFromDbHdr(aConversation, aMsgHdr) { } Log.debug(self.mailingLists); - self.isReplyListEnabled = + self.isReplyListEnabled = aMimeMsg && aMimeMsg.has("list-post") && self.RE_LIST_POST.exec(aMimeMsg.get("list-post")) ; let seen = {}; - self.isReplyAllEnabled = + self.isReplyAllEnabled = parseMimeLine(aMimeMsg.get("from"), true) .concat(parseMimeLine(aMimeMsg.get("to"), true)) .concat(parseMimeLine(aMimeMsg.get("cc"), true)) diff --git a/modules/monkeypatch.js b/modules/monkeypatch.js index 7e0de621d..26501158f 100644 --- a/modules/monkeypatch.js +++ b/modules/monkeypatch.js @@ -151,7 +151,7 @@ MonkeyPatch.prototype = { // This has to be the first time that the documentation on MDC // 1) exists and // 2) is actually relevant! - // + // // OMG ! // // https://developer.mozilla.org/en/Extensions/Thunderbird/Creating_a_Custom_Column @@ -182,7 +182,7 @@ MonkeyPatch.prototype = { parseMimeLine(line, true).forEach(function(x) { people.push(format(x, pos)) }); - } + } // We add everyone addPeople("author", true); addPeople("recipients", false); @@ -209,7 +209,7 @@ MonkeyPatch.prototype = { let columnHandler = { getCellText: function(row, col) { let msgHdr = window.gDBView.getMsgHdrAt(row); - return participants(msgHdr); + return participants(msgHdr); }, getSortStringForRow: function(msgHdr) { return participants(msgHdr); @@ -229,7 +229,7 @@ MonkeyPatch.prototype = { // The main window is loaded when the monkey-patch is applied Services.obs.addObserver({ - observe: function(aMsgFolder, aTopic, aData) { + observe: function(aMsgFolder, aTopic, aData) { window.gDBView.addColumnHandler("betweenCol", columnHandler); } }, "MsgCreateDBView", false); @@ -300,7 +300,7 @@ MonkeyPatch.prototype = { Log.debug("Error in the onLocationChange handler "+e+"\n"); dumpCallStack(e); } - } + } if (window.gFolderDisplay.view.showThreaded) { // The || is for the wicked case that Standard8 sent me a screencast for. // This makes sure we *always* mark the selected message as read, even in