From babfb99be9295b0e4c9e1d78c81df1b0f99f964a Mon Sep 17 00:00:00 2001 From: Mark Salsbery Date: Mon, 9 Dec 2013 10:04:39 -0800 Subject: [PATCH] Code fix --- src/viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index 051a7b7e..8894a8a4 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -1122,7 +1122,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, }else{ this.addControl( this.pagingControl, - {anchor: this.sequenceControlAnchor ? this.sequenceControlAnchor : $.ControlAnchor.TOP_LEFT} + {anchor: this.sequenceControlAnchor || $.ControlAnchor.TOP_LEFT} ); } } @@ -1243,7 +1243,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, }else{ this.addControl( this.navControl, - {anchor: this.navigationControlAnchor ? this.navigationControlAnchor : $.ControlAnchor.TOP_LEFT} + {anchor: this.navigationControlAnchor || $.ControlAnchor.TOP_LEFT} ); } }