mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +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;
|
return $.supportsCanvas;
|
||||||
}
|
}
|
||||||
|
|
||||||
get type(){
|
getType(){
|
||||||
return 'canvas';
|
return 'canvas';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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!');
|
||||||
|
Loading…
Reference in New Issue
Block a user