mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-29 01:13:37 +01:00
Add NEWS entry about :groups.
--HG-- branch : groups
This commit is contained in:
@@ -728,8 +728,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
}
|
||||
|
||||
list = null;
|
||||
if (level == 0 && /^.*:\n$/.test())
|
||||
var elem = <h2>{template.linkifyHelp(par.slice(0, -1), true)}</h2>;
|
||||
if (level == 0 && /^.*:\n$/.test(match.par))
|
||||
res += <h2>{template.linkifyHelp(par.slice(0, -1), true)}</h2>;
|
||||
else {
|
||||
let [, a, b] = /^(IMPORTANT:?)?([^]*)/.exec(par);
|
||||
res += <p highlight={group + " HelpNews"}>{
|
||||
@@ -759,7 +759,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
unescape(encodeURI( // UTF-8 handling hack.
|
||||
<document xmlns={NS} xmlns:dactyl={NS}
|
||||
name="versions" title={config.appName + " Versions"}>
|
||||
<h1 tag="versions news">{config.appName} Versions</h1>
|
||||
<h1 tag="versions news NEWS">{config.appName} Versions</h1>
|
||||
<toc start="2"/>
|
||||
|
||||
{rec(NEWS, 0)}
|
||||
|
||||
@@ -40,9 +40,11 @@ var Tabs = Module("tabs", {
|
||||
]]></>, /tab-./g, function (m) util.OS.isMacOSX ? "tab-mac" : m),
|
||||
false, true);
|
||||
|
||||
for (let { linkedBrowser: { contentDocument } } in values(this.allTabs))
|
||||
if (contentDocument.readyState === "complete")
|
||||
dactyl.initDocument(contentDocument);
|
||||
this.timeout(function () {
|
||||
for (let { linkedBrowser: { contentDocument } } in values(this.allTabs))
|
||||
if (contentDocument.readyState === "complete")
|
||||
dactyl.initDocument(contentDocument);
|
||||
});
|
||||
},
|
||||
|
||||
cleanup: function cleanup() {
|
||||
|
||||
@@ -125,7 +125,10 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
obj.observers[target].call(obj, subject, data);
|
||||
}
|
||||
catch (e) {
|
||||
util.reportError(e);
|
||||
if (typeof util === "undefined")
|
||||
dump("dactyl: error: " + e + "\n" + (e.stack || Error().stack).replace(/^/gm, "dactyl: "));
|
||||
else
|
||||
util.reportError(e);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1039,7 +1042,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
|
||||
JSMLoader.cleanup();
|
||||
|
||||
services.observer.addObserver(this, "dactyl-rehash", true);
|
||||
if (!this.rehashing)
|
||||
services.observer.addObserver(this, "dactyl-rehash", true);
|
||||
},
|
||||
"dactyl-rehash": function () {
|
||||
services.observer.removeObserver(this, "dactyl-rehash");
|
||||
|
||||
Reference in New Issue
Block a user