From 01a4ea6f2ceced011af7a01c0cc1a3b6bd2741f8 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 9 Jul 2023 14:10:20 -0400 Subject: [PATCH] Update documentation and remove commented code. Change from get type to getType(). --- src/canvasdrawer.js | 2 +- src/drawerbase.js | 2 +- src/viewer.js | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/canvasdrawer.js b/src/canvasdrawer.js index 58fae806..be0e4cbb 100644 --- a/src/canvasdrawer.js +++ b/src/canvasdrawer.js @@ -85,7 +85,7 @@ class CanvasDrawer extends $.DrawerBase{ return $.supportsCanvas; } - get type(){ + getType(){ return 'canvas'; } diff --git a/src/drawerbase.js b/src/drawerbase.js index 534f18a7..8c32d6fd 100644 --- a/src/drawerbase.js +++ b/src/drawerbase.js @@ -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; } diff --git a/src/viewer.js b/src/viewer.js index 93024c7c..b39feea2 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -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!');