1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-16 09:05:46 +01:00

s/'/"/ and remove spaces.

This commit is contained in:
anekos
2008-12-29 07:05:57 +09:00
parent 9c61562ac5
commit 09cfa87fed
5 changed files with 15 additions and 15 deletions

View File

@@ -298,7 +298,7 @@ function Events() //{{{
var inputBufferLength = 0; // count the number of keys in v.input.buffer (can be different from v.input.buffer.length) var inputBufferLength = 0; // count the number of keys in v.input.buffer (can be different from v.input.buffer.length)
var skipMap = false; // while feeding the keys (stored in v.input.buffer | no map found) - ignore mappings var skipMap = false; // while feeding the keys (stored in v.input.buffer | no map found) - ignore mappings
var macros = storage.newMap('macros', true); var macros = storage.newMap("macros", true);
var currentMacro = ""; var currentMacro = "";
var lastMacro = ""; var lastMacro = "";

View File

@@ -44,12 +44,12 @@ function Tabs() //{{{
{ {
if (!tabmail) if (!tabmail)
{ {
tabmail = document.getElementById('tabmail'); tabmail = document.getElementById("tabmail");
tabmail.__defineGetter__('mTabContainer', function () this.tabContainer); tabmail.__defineGetter__("mTabContainer", function () this.tabContainer);
tabmail.__defineGetter__('mTabs', function () this.tabContainer.childNodes); tabmail.__defineGetter__("mTabs", function () this.tabContainer.childNodes);
tabmail.__defineGetter__('mCurrentTab', function () this.tabContainer.selectedItem); tabmail.__defineGetter__("mCurrentTab", function () this.tabContainer.selectedItem);
tabmail.__defineGetter__('mStrip', function () this.tabStrip); tabmail.__defineGetter__("mStrip", function () this.tabStrip);
tabmail.__defineGetter__('browsers', function () [browser for (browser in Iterator(this.mTabs))] ); tabmail.__defineGetter__("browsers", function () [browser for (browser in Iterator(this.mTabs))] );
} }
return tabmail; return tabmail;
}; };
@@ -123,7 +123,7 @@ function Tabs() //{{{
let tabStrip = tabs.tabStrip; let tabStrip = tabs.tabStrip;
if (!tabStrip) if (!tabStrip)
return options['showtabline']; // XXX return options["showtabline"]; // XXX
if (value == 0) if (value == 0)
{ {

View File

@@ -95,7 +95,7 @@ function CommandLine() //{{{
let str = this.input.value; let str = this.input.value;
if (/^\s*$/.test(str)) if (/^\s*$/.test(str))
return; return;
this.store.mutate('filter', function (line) line != str); this.store.mutate("filter", function (line) line != str);
this.store.push(str); this.store.push(str);
this.store.truncate(options["history"], true); this.store.truncate(options["history"], true);
}, },

View File

@@ -452,8 +452,8 @@ const util = { //{{{
try try
{ {
const clipboard = Cc['@mozilla.org/widget/clipboard;1'].getService(Ci.nsIClipboard); const clipboard = Cc["@mozilla.org/widget/clipboard;1"].getService(Ci.nsIClipboard);
const transferable = Cc['@mozilla.org/widget/transferable;1'].createInstance(Ci.nsITransferable); const transferable = Cc["@mozilla.org/widget/transferable;1"].createInstance(Ci.nsITransferable);
transferable.addDataFlavor("text/unicode"); transferable.addDataFlavor("text/unicode");

View File

@@ -65,16 +65,16 @@ function Bookmarks() //{{{
// Error: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIObserverService.addObserver]" // Error: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIObserverService.addObserver]"
// nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" // nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"
// location: "JS frame :: file://~firefox/components/nsTaggingService.js :: anonymous :: line 89" // location: "JS frame :: file://~firefox/components/nsTaggingService.js :: anonymous :: line 89"
// data: no] // data: no]
// Source file: file://~firefox/components/nsTaggingService.js // Source file: file://~firefox/components/nsTaggingService.js
taggingService.getTagsForURI(window.makeURI("http://mysterious.bug"), {}); taggingService.getTagsForURI(window.makeURI("http://mysterious.bug"), {});
const Bookmark = new Struct("url", "title", "icon", "keyword", "tags", "id"); const Bookmark = new Struct("url", "title", "icon", "keyword", "tags", "id");
const Keyword = new Struct("keyword", "title", "icon", "url"); const Keyword = new Struct("keyword", "title", "icon", "url");
Bookmark.defaultValue("icon", function () getFavicon(this.url)); Bookmark.defaultValue("icon", function () getFavicon(this.url));
Bookmark.prototype.__defineGetter__("extra", function () [ Bookmark.prototype.__defineGetter__("extra", function () [
['keyword', this.keyword, "Keyword"], ["keyword", this.keyword, "Keyword"],
['tags', this.tags.join(', '), "Tag"] ["tags", this.tags.join(", "), "Tag"]
].filter(function (item) item[1])); ].filter(function (item) item[1]));
const storage = modules.storage; const storage = modules.storage;