When you read a comic and go to the next chapter you can't navigate with the arrows to the previous one you read.
If you are in the first page of the new chapter, the values are:
next_page = 'http://bato.to/reader#someIdA_2'; prev_page = 'http://bato.to/reader#someIdB_last';
If you try to go back from there with those values then the function calls are:
// Apparently IPB adds the method last to the Array prototype checkMemory('someIdB', 'last', ''); >> function last(){return this[this.length-1];} // when you try to change the html with jQuery the reader actually does: jQuery( "#reader" ).html( function last(){return this[this.length-1]} );
This doesn't happen if it's the first chapter opened because then the function checkMemory returns false when it checks that the array for the previous chapter ( page_memory['someIdB'] ) hasn't been created, thus without having to check if there exists 'last' in page_memory['someIdB']
Edited by Mad Hero, 22 April 2017 - 11:34 PM.