Change missleading variable name.

This commit is contained in:
Jürg Lehni 2011-03-04 01:22:08 +00:00
parent 5a640b50f8
commit 7462a58903

View file

@ -40,14 +40,14 @@ var PaperScript = new function() {
'-': 'negate'
};
function $sign(operator, exp) {
function $sign(operator, value) {
var handler = signs[operator];
if (exp && exp[handler]) {
return exp[handler]();
if (value && value[handler]) {
return value[handler]();
}
switch (operator) {
case '+': return +exp;
case '-': return -exp;
case '+': return +value;
case '-': return -value;
default:
throw new Error('Implement Sign Operator: ' + operator);
}