Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add toPage argument to jQTouch.goBack() #406

Closed
wants to merge 1 commit into
from
Commits on Apr 4, 2012
  1. Change goBack() to take an optional count or hash argument.

    David Hull committed Apr 4, 2012
    goBack( to:object )
    
    Forces jQTouch to go back to a certain page in the history. You can
    pass a specific page ID, a number of pages to go back, or nothing to
    go back one page. If the specified page can not be found, jQTouch will
    go back one page by default. Example:
    
      jQT.goBack(2); // Goes back 2 pages in history
      jQT.goBack('#home'); // Goes to #home as long as it's in history
      jQT.goBack(); // Goes back 1 page in history