mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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'](
|
||||
current = getPoint(j));
|
||||
control = current;
|
||||
if(lower == 'm')
|
||||
if(lower === 'm')
|
||||
start = current;
|
||||
break;
|
||||
case 'h':
|
||||
case 'v':
|
||||
var coord = lower == 'h' ? 'x' : 'y';
|
||||
var coord = lower === 'h' ? 'x' : 'y';
|
||||
for (var j = 0; j < length; j++) {
|
||||
current[coord] = getCoord(j, coord);
|
||||
this.lineTo(current);
|
||||
|
|
Loading…
Reference in a new issue