Merge pull request #2153 from devbyjonah/deprecated_Alias

added warning for deprecated method buttons()
This commit is contained in:
Ian Gilman 2022-05-05 14:02:06 -07:00 committed by GitHub
commit ad7f3449bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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