Permalink
Switch branches/tags
Nothing to show
Commits on Oct 5, 2010
  1. Note Transition tool

    rwstauner committed Oct 5, 2010
    Also fix a few lines to make the file valid YAML
Commits on Oct 4, 2010
  1. Ignore .build directory

    rwstauner committed Oct 4, 2010
Commits on Oct 3, 2010
  1. Distribute source code under the MIT license

    rwstauner committed Oct 3, 2010
    because I don't really care what you do with it.
Commits on Apr 11, 2010
  1. Let empty string match an empty hash (instead of prefix match always …

    rwstauner committed Apr 11, 2010
    …returning true with '')
  2. Create iframe with document.write if the document isn't loaded yet

    rwstauner committed Apr 11, 2010
    You should remember http://support.microsoft.com/kb/927917
    that throws an uncatchable error in IE saying "Operation aborted"
    if script tries to call document.body.appendChild before the body is ready.
    Use document.readyState ('complete') to determine document.write vs appendChild.
    This avoids the error (and somewhat works) in IE 6 and 7.
  3. Move processing of cached custom events into the IE version of send()…

    rwstauner committed Apr 11, 2010
    … since that's where it belongs anyway
Commits on Apr 10, 2010
  1. Fix getHash bug which would return full url instead of empty string w…

    rwstauner committed Apr 10, 2010
    …hen no hash is present
Commits on Apr 9, 2010
  1. Remove synthesize.hashchange and Dispatcher (completed). Add notes ab…

    rwstauner committed Apr 9, 2010
    …out domready and haXe.
  2. Lower the poll interval from 250 to 200 milliseconds

    rwstauner committed Apr 9, 2010
    Clicking the back/forward buttons on IE too quickly will drop recent history entries,
    presumably because the iframe hasn't been set up yet.
    Try to lower the interval to lessen this.
  3. Allow prepare() to stop the event from being added

    rwstauner committed Apr 9, 2010
    Return true or false from prepare to determine whether or not to continue adding the event.
    Cache element and function in an array in case the browser (IE) doesn't support custom events.
  4. Remove unused/unsent parameter from _iframeHash and put the 'return' …

    rwstauner committed Apr 9, 2010
    …in front of the value (since javascript requires it).
Commits on Apr 8, 2010
  1. Add prelimnary functions to synthesize 'hashchange' event for browser…

    rwstauner committed Apr 8, 2010
    …s that don't support it
    
    Simulate by polling url for hash changes.
    Currently working in Opera and Firefox.
  2. Don't call charAt on null

    rwstauner committed Apr 8, 2010
  3. Fix getHash function to use location.href instead of location.hash

    rwstauner committed Apr 8, 2010
    location.hash url-decodes the hash (which could interfere with parsing)
  4. Change the listen function to accept the event name/type as first arg…

    rwstauner committed Apr 8, 2010
    …ument (more like addEventListener)
    
    (In preparation for also listening to onload)
  5. Remove unused _lastHash variable (this is the responsibility of the E…

    rwstauner committed Apr 8, 2010
    …vent library not the Dispatcher)
Commits on Apr 7, 2010
  1. Call dispatched function as method on element and send event for cons…

    rwstauner committed Apr 7, 2010
    …istency with other event handlers.
    
    This is more [actually] consistent than the last [inconsistent] version.
    The current hash and condition return values are still supplied (as second and third arguments after event).
  2. Wrap IE [5+] Event model to simulate standards and lessen memory leaks

    rwstauner committed Apr 7, 2010
    If standard (DOM Level 2) Event model is not present, check for the IE [5+] Event model.
    If that exists (it should) then define add() and remove() to wrap attach/detachEvent
    and insert a number of hacks to make things resemble standards-compliance
    and try to avoid the infamous IE memory leaks.
  3. Wrap external function calls in try/catch

    rwstauner committed Apr 7, 2010
    Don't let errors in one callback keep other (unrelated) dispatched methods from running.
    Do this for both the condition function and the action function.
  4. Condense code by eliminating some whitespace and using a local variab…

    rwstauner committed Apr 7, 2010
    …le in place of 'this'.
  5. Define listen method to allow for easily overriding (allowing use of …

    rwstauner committed Apr 7, 2010
    …custom event library)
    
    Instead of explicitly calling Auger.Event.add, call a separate method to set up a hashchange listener.
    This allows the listen method to be overridden so another event library can be used.
    By default try Auger.Event and then simply window.onhashchange.  If both fail, throw an error.