Fix compare statements.

This commit is contained in:
Jürg Lehni 2014-03-13 01:04:31 +01:00
parent 0bca1656ac
commit 10c28a301e

View file

@ -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);