diff --git a/src/util/PaperScript.js b/src/util/PaperScript.js index a33960bc..bac204bf 100644 --- a/src/util/PaperScript.js +++ b/src/util/PaperScript.js @@ -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); }