1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 16:34:13 +01:00

Make teledactyl not explode yay.

This commit is contained in:
Kris Maglione
2011-07-28 01:32:25 -04:00
parent a63d61612d
commit 93edf62036
5 changed files with 16 additions and 9 deletions

1
teledactyl/bootstrap.js vendored Symbolic link
View File

@@ -0,0 +1 @@
../common/bootstrap.js

View File

@@ -4,7 +4,7 @@
// given in the LICENSE.txt file included with this file. // given in the LICENSE.txt file included with this file.
"use strict"; "use strict";
const Addressbook = Module("addressbook", { var Addressbook = Module("addressbook", {
init: function () { init: function () {
}, },

View File

@@ -4,7 +4,7 @@
// given in the LICENSE.txt file included with this file. // given in the LICENSE.txt file included with this file.
"use strict"; "use strict";
const Config = Module("config", ConfigBase, { var Config = Module("config", ConfigBase, {
name: "teledactyl", name: "teledactyl",
appName: "Teledactyl", appName: "Teledactyl",
idName: "TELEDACTYL", idName: "TELEDACTYL",
@@ -16,12 +16,16 @@ const Config = Module("config", ConfigBase, {
init: function init() { init: function init() {
init.superapply(this, arguments); init.superapply(this, arguments);
modules.__defineGetter__("content", function () window.content); if (!("content" in modules))
modules.__defineGetter__("content", function () window.content);
util.overlayWindow(window, { append: <><hbox id="statusTextBox" flex=""/></> }); util.overlayWindow(window, { append: <><hbox id="statusTextBox" flex=""/></> });
}, },
get browser() window.getBrowser(), get browser()
let (tabmail = document.getElementById('tabmail'))
tabmail && tabmail.tabInfo.length ? tabmail.getBrowserForSelectedTab()
: document.getElementById("messagepane"),
get commandContainer() document.documentElement.id, get commandContainer() document.documentElement.id,
@@ -33,6 +37,8 @@ const Config = Module("config", ConfigBase, {
get mStrip() this.tabStrip, get mStrip() this.tabStrip,
get browsers() [browser for (browser in Iterator(this.mTabs))], get browsers() [browser for (browser in Iterator(this.mTabs))],
removeTab: function removeTab(tab) this.closeTab(tab),
loadOneTab: function loadOneTab(uri) { loadOneTab: function loadOneTab(uri) {
return this.openTab("contentTab", { contentPage: uri }); return this.openTab("contentTab", { contentPage: uri });
}, },

View File

@@ -4,7 +4,7 @@
// given in the LICENSE.txt file included with this file. // given in the LICENSE.txt file included with this file.
"use strict"; "use strict";
const Mail = Module("mail", { var Mail = Module("mail", {
init: function init() { init: function init() {
// used for asynchronously selecting messages after wrapping folders // used for asynchronously selecting messages after wrapping folders
this._selectMessageKeys = []; this._selectMessageKeys = [];

View File

@@ -5,17 +5,17 @@
em:id="teledactyl@dactyl.googlecode.com" em:id="teledactyl@dactyl.googlecode.com"
em:type="2" em:type="2"
em:name="Teledactyl" em:name="Teledactyl"
em:version="0.5b1pre" em:version="0.6"
em:description="Thunderbird for Mutt and Vim addicts" em:description="Thunderbird for Mutt and Vim addicts"
em:creator="Kris Maglione" em:creator="Kris Maglione"
em:homepageURL="http://dactyl.sf.net/Teledactyl" em:homepageURL="http://dactyl.sf.net/Teledactyl"
em:iconURL="chrome://teledactyl/skin/icon.png" em:iconURL="chrome://teledactyl/skin/icon.png"
em:optionsURL="chrome://dactyl/content/preferences.xul"> em:bootstrap="true">
<em:targetApplication> <em:targetApplication>
<Description> <Description>
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id> <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>3.0b3</em:minVersion> <em:minVersion>5.0</em:minVersion>
<em:maxVersion>3.2</em:maxVersion> <em:maxVersion>8.*</em:maxVersion>
</Description> </Description>
</em:targetApplication> </em:targetApplication>
</Description> </Description>