1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 00:02:27 +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+)/);

View File

@@ -268,7 +268,7 @@ liberator.Options = function () //{{{
return;
}
var expr = liberator.eval(matches[4]);
var expr = liberator.evalExpression(matches[4]);
if (typeof expr === undefined)
{
liberator.echoerr("E15: Invalid expression: " + matches[4]);