this.checkLogoVisibility();
$(window).scrollTop(0);
- $(this.fluidbook).trigger('fluidbook.resize', {
+ var data = {
ww: this.ww,
hh: this.hh,
orientation: this.orientation,
bookScale: this.bookScale,
fluidbookrect: $("#fluidbook").get(0).getBoundingClientRect(),
- arrowLeftRect: $("#previous").get(0).getBoundingClientRect(),
- arrowRightRect: $("#next").get(0).getBoundingClientRect(),
- });
+
+ };
+ try {
+ data.arrowLeftRect = $("#previous").get(0).getBoundingClientRect();
+ data.arrowRightRect = $("#next").get(0).getBoundingClientRect();
+ } catch (e) {
+
+ }
+ $(this.fluidbook).trigger('fluidbook.resize', data);
+
},
resizeNav: function (interfaceScale) {
var $this = this;