Maui,
It turns out that I made two mistakes while putting the examples
together. In the (bad) examples, there were two main sources of those
errors.
1) In both examples, the evaluation of historyObject.calledFromHistory
would fail when the historyObject parameter wasn't passed. Since that
parameter was never passed when the page would load, you'd always see
an error.
2) Additionally, as you mentioned, there was an error when trying to
evaluate historyObject.QueryVars. In the original code, the object
that is now QueryElements used to be QueryVars, and so I accidentally
put in the old object name rather than the new one.
I've fixed both of the examples and tested them out; they seem to work
fine. I'm really sorry about the errors that you did run into though.
Additionally, please feel free to check out the working demo linked
from the project's main page in order to see a more complex and full-
featured example of how you can use dsHistory.
Andrew