Update documentation and remove commented code. Change from get type to getType().

This commit is contained in:
Tom 2023-07-09 14:10:20 -04:00
parent 6feed0a68e
commit 01a4ea6f2c
3 changed files with 2 additions and 4 deletions

View File

@ -85,7 +85,7 @@ class CanvasDrawer extends $.DrawerBase{
return $.supportsCanvas;
}
get type(){
getType(){
return 'canvas';
}

View File

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

View File

@ -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!');