mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:17:59 +01:00
Use builtin String.startsWith, String.endsWith, and String.contains methods where appropriate.
This commit is contained in:
@@ -764,7 +764,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), {
|
||||
context = context.fork("registers");
|
||||
context.keys = { text: util.identity, description: editor.closure.getRegister };
|
||||
|
||||
context.match = function (r) !this.filter || ~this.filter.indexOf(r);
|
||||
context.match = function (r) !this.filter || this.filter.contains(r);
|
||||
|
||||
context.fork("clipboard", 0, this, function (ctxt) {
|
||||
ctxt.match = context.match;
|
||||
|
||||
Reference in New Issue
Block a user