mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 09:42:28 +01:00
s/'/"/ and remove spaces.
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user