1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 02:22:26 +01:00

changes :macro to :play + delMarcos to deleteMacros

This commit is contained in:
Marco Candrian
2008-01-21 13:23:25 +00:00
parent 2b71bd70b8
commit 6b9c2a7b0d
3 changed files with 8 additions and 9 deletions

View File

@@ -552,19 +552,19 @@ vimperator.Events = function () //{{{
for (var item in macros)
{
if (item.match(re))
if (re.test(item))
filtered[item] = macros[item];
}
return filtered; //XXX: returns a real copy, since this is only a 'var ..'?
},
delMacros: function (filter)
deleteMacros: function (filter)
{
var re = new RegExp(filter);
for (var item in macros)
{
if (item.match(re))
if (re.test(item))
delete macros[item];
}
},