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' '-': 'negate'
}; };
function $sign(operator, exp) { function $sign(operator, value) {
var handler = signs[operator]; var handler = signs[operator];
if (exp && exp[handler]) { if (value && value[handler]) {
return exp[handler](); return value[handler]();
} }
switch (operator) { switch (operator) {
case '+': return +exp; case '+': return +value;
case '-': return -exp; case '-': return -value;
default: default:
throw new Error('Implement Sign Operator: ' + operator); throw new Error('Implement Sign Operator: ' + operator);
} }