ensure constructor backward compatibility

This commit is contained in:
jonasengelmann 2022-04-19 16:43:00 +02:00
parent eca51850e2
commit 62e24ac1ab
2 changed files with 4 additions and 1 deletions

View File

@ -378,7 +378,7 @@ $.Viewer = function( options ) {
minZoomLevel: this.minZoomLevel,
maxZoomLevel: this.maxZoomLevel,
viewer: this,
initialDegrees: this.degrees,
degrees: this.degrees,
flipped: this.flipped,
navigatorRotate: this.navigatorRotate,
homeFillsViewer: this.homeFillsViewer,

View File

@ -86,6 +86,9 @@ $.Viewport = function( options ) {
delete options.margins;
options.initialDegrees = options.degrees;
delete options.degrees;
$.extend( true, this, {
//required settings