}
this.autoStop();
+ this.ttsStop();
this.removeSearchHilites();
this.mode = mode;
$(this.leafEdgeL).bind('click', this, function(e) {
e.data.autoStop();
+ e.data.ttsStop();
var jumpIndex = e.data.jumpIndexForLeftEdgePageX(e.pageX);
e.data.jumpToIndex(jumpIndex);
});
$(this.leafEdgeR).bind('click', this, function(e) {
e.data.autoStop();
+ e.data.ttsStop();
var jumpIndex = e.data.jumpIndexForRightEdgePageX(e.pageX);
e.data.jumpToIndex(jumpIndex);
});
// next()
//______________________________________________________________________________
BookReader.prototype.next = function() {
- //this.ttsStop();
-
if (2 == this.mode) {
this.autoStop();
this.flipFwdToIndex(null);
// prev()
//______________________________________________________________________________
BookReader.prototype.prev = function() {
- //this.ttsStop();
-
if (2 == this.mode) {
this.autoStop();
this.flipBackToIndex(null);
this.setClickHandler2UP( this.prefetchedImgs[this.twoPage.currentIndexL],
{ self: this },
function(e) {
+ e.data.self.ttsStop();
e.data.self.left();
e.preventDefault();
}
this.setClickHandler2UP( this.prefetchedImgs[this.twoPage.currentIndexR],
{ self: this },
function(e) {
+ e.data.self.ttsStop();
e.data.self.right();
e.preventDefault();
}
return;
}
this.autoStop();
+ this.ttsStop();
this.embedPopup = document.createElement("div");
$(this.embedPopup).css({
position: 'absolute',
if (newHash != self.oldUserHash) { // Only process new user hash once
//console.log('url change detected ' + self.oldLocationHash + " -> " + newHash);
+ self.ttsStop();
+
// Queue change if animating
if (self.animating) {
self.autoStop();