});
}
-// setDragHandler2up()
+// setDragHandler2UP()
//______________________________________________________________________________
-GnuBook.prototype.setDragHandler2up = function(div) {
+GnuBook.prototype.setDragHandler2UP = function(div) {
div.dragging = false;
$(div).unbind('mousedown').bind('mousedown', function(e) {
});
}
-GnuBook.prototype.setClickHandler2up = function( element, data, handler) {
+GnuBook.prototype.setClickHandler2UP = function( element, data, handler) {
//console.log('setting handler');
//console.log(element.tagName);
this.displayedIndices = [this.twoPage.currentIndexL, this.twoPage.currentIndexR];
- this.setClickHandlers();
+ this.setMouseHandlers2UP();
this.twoPageSetCursor();
this.updatePageNumBox2UP();
this.updateToolbarZoom(this.reduce);
- this.twoPagePlaceFlipAreas();
+ // this.twoPagePlaceFlipAreas(); // No longer used
}
var self = this; // for closure
- /*
+ /* Flip areas no longer used
this.twoPage.leftFlipArea = document.createElement('div');
this.twoPage.leftFlipArea.className = 'GBfliparea';
$(this.twoPage.leftFlipArea).attr('id', 'GBleftflip').css({
self.updateSearchHilites2UP();
self.updatePageNumBox2UP();
- self.twoPagePlaceFlipAreas();
- self.setClickHandlers();
+ // self.twoPagePlaceFlipAreas(); // No longer used
+ self.setMouseHandlers2UP();
self.twoPageSetCursor();
if (self.animationFinishedCallback) {
self.updateSearchHilites2UP();
self.updatePageNumBox2UP();
- self.twoPagePlaceFlipAreas();
- self.setClickHandlers();
+ // self.twoPagePlaceFlipAreas(); // No longer used
+ self.setMouseHandlers2UP();
self.twoPageSetCursor();
if (self.animationFinishedCallback) {
});
}
-// setClickHandlers
+// setMouseHandlers2UP
//______________________________________________________________________________
-GnuBook.prototype.setClickHandlers = function() {
+GnuBook.prototype.setMouseHandlers2UP = function() {
/*
$(this.prefetchedImgs[this.twoPage.currentIndexL]).bind('dblclick', function() {
//self.prevPage();
});
*/
- this.setDragHandler2up( this.prefetchedImgs[this.twoPage.currentIndexL] );
- this.setClickHandler2up( this.prefetchedImgs[this.twoPage.currentIndexL],
+ this.setDragHandler2UP( this.prefetchedImgs[this.twoPage.currentIndexL] );
+ this.setClickHandler2UP( this.prefetchedImgs[this.twoPage.currentIndexL],
{ self: this },
function(e) {
e.data.self.left();
}
);
- this.setDragHandler2up( this.prefetchedImgs[this.twoPage.currentIndexR] );
- this.setClickHandler2up( this.prefetchedImgs[this.twoPage.currentIndexR],
+ this.setDragHandler2UP( this.prefetchedImgs[this.twoPage.currentIndexR] );
+ this.setClickHandler2UP( this.prefetchedImgs[this.twoPage.currentIndexR],
{ self: this },
function(e) {
e.data.self.right();