1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 17:27:59 +01:00

Don't show the "all" item in the sanitize dialog.

This commit is contained in:
Kris Maglione
2010-10-14 04:18:00 -04:00
parent 3f42eee0db
commit cd60cf81f6
4 changed files with 3 additions and 6 deletions

View File

@@ -31,10 +31,6 @@ const AutoCommands = Module("autocommands", {
* @param {string} cmd The Ex command to run. * @param {string} cmd The Ex command to run.
*/ */
add: function (events, regex, cmd) { add: function (events, regex, cmd) {
if (typeof events == "string") {
events = events.split(",");
dactyl.log("DEPRECATED: the events list arg to autocommands.add() should be an array of event names");
}
events.forEach(function (event) { events.forEach(function (event) {
this._store.push(AutoCommand(event, Option.parseRegex(regex), cmd)); this._store.push(AutoCommand(event, Option.parseRegex(regex), cmd));
}, this); }, this);

View File

@@ -2,6 +2,7 @@ from mercurial import util
import os import os
def fix_symlinks(repo, hooktype, parent1, **kwargs): def fix_symlinks(repo, hooktype, parent1, **kwargs):
print map(repr, (repo, hooktype, parent1, kwargs))
revert = hooktype in ('precommit', 'preupdate') revert = hooktype in ('precommit', 'preupdate')
ctxt = repo[parent1] ctxt = repo[parent1]
for filename in ctxt: for filename in ctxt:

View File

@@ -130,7 +130,7 @@ const Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakR
function ourItems(persistent) [ function ourItems(persistent) [
item for (item in self.itemMap) item for (item in self.itemMap)
if (!item.builtin && (!persistent || item.persistent)) if (!item.builtin && (!persistent || item.persistent) && item.name !== "all")
]; ];
function prefOverlay(branch, persistent, local) update(Object.create(local), { function prefOverlay(branch, persistent, local) update(Object.create(local), {