Skip to content

Commit

Permalink
No tabs!
Browse files Browse the repository at this point in the history
  • Loading branch information
protz committed Apr 28, 2015
1 parent d0429e9 commit 91b7553
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions content/stub.compose-ui.js
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -1214,7 +1214,7 @@ let sendListener = {
Log.warn("Plugin returned an error:", e);
dumpCallStack(e);
};
}
}
},

/**
Expand Down
12 changes: 6 additions & 6 deletions modules/conversation.js
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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");
Expand Down Expand Up @@ -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");

Expand Down
18 changes: 9 additions & 9 deletions modules/message.js
Expand Up @@ -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;
Expand Down Expand Up @@ -954,7 +954,7 @@ Message.prototype = {
attInfos[j].save();
});

let maybeViewable =
let maybeViewable =
att.contentType.indexOf("image/") === 0
|| att.contentType.indexOf("text/") === 0
;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down
10 changes: 5 additions & 5 deletions modules/monkeypatch.js
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 91b7553

Please sign in to comment.