Minor fix to previous PR

This commit is contained in:
Ian Gilman 2022-06-08 15:06:58 -07:00
parent 4ce2bdcdd1
commit e8adefbe6e

View File

@ -79,7 +79,7 @@ $.Control = function ( element, options, container ) {
{
$.console.error("Passing an anchor directly into the OpenSeadragon.Control constructor is deprecated; " +
"please use an options object instead. " +
"Support for this deprecated variant is scheduled for removal in December 2022");
"Support for this deprecated variant is scheduled for removal in December 2013");
options = {anchor: options};
}
options.attachToViewer = (typeof options.attachToViewer === 'undefined') ? true : options.attachToViewer;