From c2820bfcd5d28ffa24f895f3eb4711165e7c00b7 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Fri, 5 Sep 2014 23:04:12 +0200 Subject: [PATCH] Update polygon.class.js !options..left would fail in case of left = 0. --- src/shapes/polygon.class.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shapes/polygon.class.js b/src/shapes/polygon.class.js index 2113efd6..e832fd5d 100644 --- a/src/shapes/polygon.class.js +++ b/src/shapes/polygon.class.js @@ -60,10 +60,10 @@ this.points = points; this.callSuper('initialize', options); this._calcDimensions(); - if (!options.top) { + if (!('top' in options)) { this.top = this.minY; } - if (!options.left) { + if (!('left' in options)) { this.left = this.minX; } },