Compare commits

...

3 Commits

Author SHA1 Message Date
Ian Gilman
fe3b1c5a0d Changelog for #2153 2022-05-05 14:04:34 -07:00
Ian Gilman
ad7f3449bb
Merge pull request #2153 from devbyjonah/deprecated_Alias
added warning for deprecated method buttons()
2022-05-05 14:02:06 -07:00
devbyjonah
5ed4d5f630 added warning for deprecated method buttons() 2022-05-02 19:14:39 -07:00
2 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@ OPENSEADRAGON CHANGELOG
* Tile cache keys are now generated by the tile source, so it's easier to override them as needed (#2138 @Aiosa) * Tile cache keys are now generated by the tile source, so it's easier to override them as needed (#2138 @Aiosa)
* Now if you pass an error handler into makeAjaxRequest, it doesn't report errors into the console (#2142 @Aiosa) * Now if you pass an error handler into makeAjaxRequest, it doesn't report errors into the console (#2142 @Aiosa)
* Fixed error caused by attaching MouseTracker to the page's document element (#2145 @tdiprima) * Fixed error caused by attaching MouseTracker to the page's document element (#2145 @tdiprima)
* Added fallback and deprecation warning for Viewer.buttons (which got changed to buttonGroup in 3.0.0) (#2153 @devbyjonah)
3.0.0: 3.0.0:

View File

@ -507,6 +507,12 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
return this.open( tileSource ); return this.open( tileSource );
}, },
//deprecated
get buttons () {
$.console.warn('Viewer.buttons is deprecated; Please use Viewer.buttonGroup');
return this.buttonGroup;
},
/** /**
* Open tiled images into the viewer, closing any others. * Open tiled images into the viewer, closing any others.
* To get the TiledImage instance created by open, add an event listener for * To get the TiledImage instance created by open, add an event listener for