arieh/HistoryManager — Issue #10: updateState not called
Author: woomla
Created: 2011-12-08 08:46:25+00:00
State: open

Hi,

First of all, nice component!

I've noticed one unexpected behaviour. If you set multiple values in HM in say a click handler only the last one is set.
I think this is because in HM.set, this.state is not yet updated between the two calls. It is not updated because in HL.setHash, 'onhashchange' is in window and document.documentNode is undefined (FF 8,9 W7 64 bit)

[code]
$('mybutton').addEvent('click', function ()
{
HM.set('txt1', 'example1');
HM.set('txt2', 'example2');
});
[/code]