added warning for deprecated method buttons()

This commit is contained in:
devbyjonah 2022-05-02 19:14:39 -07:00
parent 449c709dcc
commit 5ed4d5f630

View File

@ -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