Opened 16 years ago

Closed 14 years ago

#1040 closed enhancement (wontfix)

dojo.undo.browser: bookmarking: support callback for reading initial page hash

Reported by: James Burke Owned by: Ben Lowery
Priority: high Milestone: 1.1
Component: General Version: 0.2
Keywords: Cc:
Blocked By: Blocking:


As part of dojo.undo.browser bookmarking support, allow setting a callback to get notification of reading the inital page hash. This will allow apps to set their starting state easier.

This ticket is a response to this email thread:

Change History (5)

comment:1 Changed 16 years ago by James Burke

Owner: changed from anonymous to James Burke

comment:2 Changed 15 years ago by dylan

Milestone: 0.40.5

comment:3 Changed 15 years ago by Adam Peller

Owner: changed from James Burke to Ben Lowery

comment:4 Changed 14 years ago by bill

Milestone: 0.91.1

comment:5 Changed 14 years ago by Ben Lowery

Resolution: wontfix
Status: newclosed

We currently require the programmer to call dojo.back.setInitialState to tell dojo.back what the starting point is for the application. We could automate the read of the hash and fire a callback / publish a topic, but that would be an API change for 1.1. Unsure if that would even work, as the memento stored for each state, including initial, has a couple functions tied to it that can have closures. Not sure how firing a callback to collect those functions is better than asking the programmer to call setInitialState... WONT_FIX for now.

Note: See TracTickets for help on using tickets.