From 5ed4d5f630f06fbcfbbbf51219d6e3280dcf268e Mon Sep 17 00:00:00 2001 From: devbyjonah Date: Mon, 2 May 2022 19:14:39 -0700 Subject: [PATCH 1/2] added warning for deprecated method buttons() --- src/viewer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/viewer.js b/src/viewer.js index cefd5653..ab779142 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -507,6 +507,12 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, 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. * To get the TiledImage instance created by open, add an event listener for From fe3b1c5a0d4ad1e62d748fbe294a5aea6bf26280 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Thu, 5 May 2022 14:04:34 -0700 Subject: [PATCH 2/2] Changelog for #2153 --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index 170823a6..a7082d6f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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) * 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) +* Added fallback and deprecation warning for Viewer.buttons (which got changed to buttonGroup in 3.0.0) (#2153 @devbyjonah) 3.0.0: