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'](
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);