From 09cfa87fed0bf139fde1973e95a7d7663a3a570e Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 29 Dec 2008 07:05:57 +0900 Subject: [PATCH] s/'/"/ and remove spaces. --- common/content/events.js | 2 +- common/content/tabs.js | 14 +++++++------- common/content/ui.js | 2 +- common/content/util.js | 4 ++-- vimperator/content/bookmarks.js | 8 ++++---- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/common/content/events.js b/common/content/events.js index 35a4fada..a490381b 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -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 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 lastMacro = ""; diff --git a/common/content/tabs.js b/common/content/tabs.js index 50d791bb..cff3cf06 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -44,12 +44,12 @@ function Tabs() //{{{ { if (!tabmail) { - tabmail = document.getElementById('tabmail'); - tabmail.__defineGetter__('mTabContainer', function () this.tabContainer); - tabmail.__defineGetter__('mTabs', function () this.tabContainer.childNodes); - tabmail.__defineGetter__('mCurrentTab', function () this.tabContainer.selectedItem); - tabmail.__defineGetter__('mStrip', function () this.tabStrip); - tabmail.__defineGetter__('browsers', function () [browser for (browser in Iterator(this.mTabs))] ); + tabmail = document.getElementById("tabmail"); + tabmail.__defineGetter__("mTabContainer", function () this.tabContainer); + tabmail.__defineGetter__("mTabs", function () this.tabContainer.childNodes); + tabmail.__defineGetter__("mCurrentTab", function () this.tabContainer.selectedItem); + tabmail.__defineGetter__("mStrip", function () this.tabStrip); + tabmail.__defineGetter__("browsers", function () [browser for (browser in Iterator(this.mTabs))] ); } return tabmail; }; @@ -123,7 +123,7 @@ function Tabs() //{{{ let tabStrip = tabs.tabStrip; if (!tabStrip) - return options['showtabline']; // XXX + return options["showtabline"]; // XXX if (value == 0) { diff --git a/common/content/ui.js b/common/content/ui.js index 458a353a..d7a3cdca 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -95,7 +95,7 @@ function CommandLine() //{{{ let str = this.input.value; if (/^\s*$/.test(str)) return; - this.store.mutate('filter', function (line) line != str); + this.store.mutate("filter", function (line) line != str); this.store.push(str); this.store.truncate(options["history"], true); }, diff --git a/common/content/util.js b/common/content/util.js index ac63871e..d1877ec4 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -452,8 +452,8 @@ const util = { //{{{ try { - const clipboard = Cc['@mozilla.org/widget/clipboard;1'].getService(Ci.nsIClipboard); - const transferable = Cc['@mozilla.org/widget/transferable;1'].createInstance(Ci.nsITransferable); + const clipboard = Cc["@mozilla.org/widget/clipboard;1"].getService(Ci.nsIClipboard); + const transferable = Cc["@mozilla.org/widget/transferable;1"].createInstance(Ci.nsITransferable); transferable.addDataFlavor("text/unicode"); diff --git a/vimperator/content/bookmarks.js b/vimperator/content/bookmarks.js index 019da2e7..b7f076a8 100644 --- a/vimperator/content/bookmarks.js +++ b/vimperator/content/bookmarks.js @@ -65,16 +65,16 @@ function Bookmarks() //{{{ // Error: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIObserverService.addObserver]" // nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" // location: "JS frame :: file://~firefox/components/nsTaggingService.js :: anonymous :: line 89" - // data: no] - // Source file: file://~firefox/components/nsTaggingService.js + // data: no] + // Source file: file://~firefox/components/nsTaggingService.js taggingService.getTagsForURI(window.makeURI("http://mysterious.bug"), {}); const Bookmark = new Struct("url", "title", "icon", "keyword", "tags", "id"); const Keyword = new Struct("keyword", "title", "icon", "url"); Bookmark.defaultValue("icon", function () getFavicon(this.url)); Bookmark.prototype.__defineGetter__("extra", function () [ - ['keyword', this.keyword, "Keyword"], - ['tags', this.tags.join(', '), "Tag"] + ["keyword", this.keyword, "Keyword"], + ["tags", this.tags.join(", "), "Tag"] ].filter(function (item) item[1])); const storage = modules.storage;