Changeset 2

Show
Ignore:
Timestamp:
09/12/08 01:27:31 (2 years ago)
Author:
nathanhammond
Message:
  • Migrate NOTES.txt to be tracked by the ticketing system.
  • Pull out the FIXME from jquery.jssm.js.
  • Update jquery.jssm.js to include revision and date keywords.
  • Update LICENSE.txt with the newest project name.
  • Add VERSION.txt to track the version being developed.
Location:
trunk
Files:
1 added
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/LICENSE.txt

    r1 r2  
    1 JSSM (JavaScript State Machine) 
     1JSSM (JavaScript State Manager) 
    22Copyright (c) 2008 Nathan Hammond 
    33 
  • trunk/jquery.jssm.js

    • Property svn:keywords set to Revision Date
    r1 r2  
     1/* 
     2JSSM @VERSION (JavaScript State Manager) 
     3Copyright (c) 2008 Nathan Hammond 
     4 
     5Licensed under the MIT License (LICENSE.txt) 
     6 
     7To report bugs or get the lates version, visit the website: 
     8http://trac.nathanhammond.com/jssm/ 
     9 
     10$Date$ 
     11$Revision$ 
     12*/ 
     13 
    114/* 
    215Object jssm 
     
    167180                if (jssm.functions.afterload) { jssm.functions.afterload(calchash); } 
    168181 
    169  
    170                 /* 
    171                 TODO: Find a solution to the "repetition of history" problem for manually re-entered hashes. 
    172                 FIXME: There is a possible fail state, if a person manually re-enters a previously existing hash it will be appended to the end of the history, but the stack pointer will be adjusted to the first time it appeared in the history stack. This creates a state where you've come to the page "fresh" but are loading the old state. 
    173  
    174                 PARTIAL SOLUTION: Watch for changes in window.history.length. Compare these to the initial length when arriving at the page and the number of items on the site's stack. 
    175  
    176                 Success Scenarios: 
    177                 1. A manually re-entered hash that matches the current one won't trigger an event or change the length (click location bar, press enter, no change). 
    178                 2. A manually re-entered hash that doesn't match the current hash changes window.history.length, and is catchable. 
    179  
    180                 Fail Scenarios: 
    181                 1. The user is exactly one spot deep in the browser history stack. The length does not change because it pops all future events off the stack and adds a new one immediately. 
    182                 */ 
    183  
    184182                // Figure out where to set the pointer. 
    185183                var exists = [];