mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Update tiledimage.js
This commit is contained in:
parent
3ec9b66bc9
commit
4627d59609
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user