mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -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'
|
'-': '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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue