Merge pull request #805 from accraze/tabindex-bug

fixed tabIndex to handle empty string
This commit is contained in:
Ian Gilman 2016-01-14 09:37:35 -08:00
commit dd45e56dc4

View File

@ -234,7 +234,7 @@ $.Viewer = function( options ) {
style.left = "0px"; style.left = "0px";
}(this.canvas.style)); }(this.canvas.style));
$.setElementTouchActionNone( this.canvas ); $.setElementTouchActionNone( this.canvas );
this.canvas.tabIndex = options.tabIndex || 0; this.canvas.tabIndex = (options.tabIndex === undefined ? 0 : options.tabIndex);
//the container is created through applying the ControlDock constructor above //the container is created through applying the ControlDock constructor above
this.container.className = "openseadragon-container"; this.container.className = "openseadragon-container";