From 4627d5960915897b72243e794b3b5b68c0f51626 Mon Sep 17 00:00:00 2001 From: YSH Date: Thu, 13 Feb 2020 14:49:14 -0800 Subject: [PATCH] Update tiledimage.js --- src/tiledimage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index bece9b66..9c2fc4ed 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -705,7 +705,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag }; try { - if ($.isArray(polygons)) { + if (!$.isArray(polygons)) { throw new Error('Provided cropping polygon is not an array'); } this._croppingPolygons = polygons.map(function(polygon){