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; return $.supportsCanvas;
} }
get type(){ getType(){
return 'canvas'; 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. * @property {String|undefined} type What type of drawer this is. Implementations should override this property.
*/ */
get type(){ getType(){
return undefined; return undefined;
} }

View File

@ -482,10 +482,8 @@ $.Viewer = function( options ) {
options: this.drawerOptions[optsKey], options: this.drawerOptions[optsKey],
}); });
this.drawerOptions.constructor = Drawer; this.drawerOptions.constructor = Drawer;
// TO DO: add an event that indicates which drawer was instantiated?
break; break;
} }
// TO DO: add an event that indicates that the selected drawer could not be created?
} }
if(this.drawer === null){ if(this.drawer === null){
$.console.error('No drawer could be created!'); $.console.error('No drawer could be created!');