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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.