mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Update documentation and remove commented code. Change from get type to getType().
This commit is contained in:
parent
6feed0a68e
commit
01a4ea6f2c
@ -85,7 +85,7 @@ class CanvasDrawer extends $.DrawerBase{
|
||||
return $.supportsCanvas;
|
||||
}
|
||||
|
||||
get type(){
|
||||
getType(){
|
||||
return 'canvas';
|
||||
}
|
||||
|
||||
|
@ -125,7 +125,7 @@ $.DrawerBase = class DrawerBase{
|
||||
/**
|
||||
* @property {String|undefined} type What type of drawer this is. Implementations should override this property.
|
||||
*/
|
||||
get type(){
|
||||
getType(){
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
@ -482,10 +482,8 @@ $.Viewer = function( options ) {
|
||||
options: this.drawerOptions[optsKey],
|
||||
});
|
||||
this.drawerOptions.constructor = Drawer;
|
||||
// TO DO: add an event that indicates which drawer was instantiated?
|
||||
break;
|
||||
}
|
||||
// TO DO: add an event that indicates that the selected drawer could not be created?
|
||||
}
|
||||
if(this.drawer === null){
|
||||
$.console.error('No drawer could be created!');
|
||||
|
Loading…
Reference in New Issue
Block a user