Update tiledimage.js

This commit is contained in:
YSH 2020-02-13 14:49:14 -08:00 committed by GitHub
parent 3ec9b66bc9
commit 4627d59609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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