Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Refactor: navigation.js A4.1 structure

StevenBlack edited this page Apr 21, 2011 · 7 revisions

jquery.mobile.navigation.js meta listing

  • Path helper functions -- mostly generic, some task-specific (path.setOrigin), some self-coupling (using hardwired name "path")
  • urlHistory manager
  • Base element management (undelegated mainline code -- note: wrong indentation starting at L201 @ 4/19/2011)
  • Focus setter and other utility functions
  • Member exposure, assigning vars to members of $.mobile
  • changePage
    • Special fromHashChange handling
    • base element reset
    • transition management
    • function defaultTransition()
    • function releasePageTransitionLock()
    • function transitionPages()
      • function pageChangeComplete()
      • function addContainerClass(className)
      • function removeContainerClasses()
    • function enhancePage()
    • Reckon url
    • Then either
      • enhancePages()
      • transitionPages()
    • or
      • Ajax call
      • enhancePages()
      • transitionPages() in a setTimeout.
  • Event bindings
    • submit binding
    • vclick binding
    • click binding
    • hashchange binding
Clone this wiki locally