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

rename old liberator.eval() to evalExpression

This commit is contained in:
Doug Kearns
2008-09-01 08:03:54 +00:00
parent d4386e16fb
commit 1fe5b5c8b3
2 changed files with 3 additions and 2 deletions

View File

@@ -659,7 +659,8 @@ const liberator = (function () //{{{
// partial sixth level expression evaluation
// TODO: what is that really needed for, and where could it be used?
// Or should it be removed? (c) Viktor
eval: function (string)
// Better name? See other liberator.eval()
evalExpression: function (string)
{
string = string.toString().replace(/^\s*/, "").replace(/\s*$/, "");
var matches = string.match(/^&(\w+)/);