dojo/hash.js

  • Provides:

    • dojo.hash
  • _pollFrequency

    • summary
  • IFRAME_ID

    • summary
  • ifrSrc

    • summary
  • ifr.id

    • summary
  • ifr.src

    • summary
  • ifr.style.display

    • summary
  • iframe

    • summary
  • iframeLoc

    • summary
  • isTransitioning

    • summary
  • pollLocation

    • summary
  • dojo.hash

    • type
      Function
    • parameters:
      • hash: (typeof String)
        the hash is set - #string.
      • replace: (typeof Boolean)
        If true, updates the hash value in the current history
        state instead of creating a new history state.
    • source: [view]
        if(!arguments.length){
         return _getHash();
        }
        // setter
        if(hash.charAt(0) == "#"){
         hash = hash.substring(1);
        }
        if(replace){
         _replace(hash);
        }else{
         location.href = "#" + hash;
        }
        return hash; // String
    • summary
      Gets or sets the hash string.
    • description
      Handles getting and setting of location.hash.
      - If no arguments are passed, acts as a getter.
      - If a string is passed, acts as a setter.
    • return_summary
      when used as a getter, returns the current hash string.
      when used as a setter, returns the new hash string.
      
      getter
    • returns
      String
  • dojo

    • type
      Object
    • summary