mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Change missleading variable name.
This commit is contained in:
parent
5a640b50f8
commit
7462a58903
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue