mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Fix compare statements.
This commit is contained in:
parent
0bca1656ac
commit
10c28a301e
1 changed files with 2 additions and 2 deletions
|
@ -229,12 +229,12 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
this[j === 0 && lower === 'm' ? 'moveTo' : 'lineTo'](
|
this[j === 0 && lower === 'm' ? 'moveTo' : 'lineTo'](
|
||||||
current = getPoint(j));
|
current = getPoint(j));
|
||||||
control = current;
|
control = current;
|
||||||
if(lower == 'm')
|
if(lower === 'm')
|
||||||
start = current;
|
start = current;
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
case 'v':
|
case 'v':
|
||||||
var coord = lower == 'h' ? 'x' : 'y';
|
var coord = lower === 'h' ? 'x' : 'y';
|
||||||
for (var j = 0; j < length; j++) {
|
for (var j = 0; j < length; j++) {
|
||||||
current[coord] = getCoord(j, coord);
|
current[coord] = getCoord(j, coord);
|
||||||
this.lineTo(current);
|
this.lineTo(current);
|
||||||
|
|
Loading…
Reference in a new issue