From 10c28a301e50ad37966feeec4fec5f5002c813b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 13 Mar 2014 01:04:31 +0100 Subject: [PATCH] Fix compare statements. --- src/path/PathItem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/PathItem.js b/src/path/PathItem.js index 12bf2453..567f2578 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -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);