HistoryManager icon indicating copy to clipboard operation
HistoryManager copied to clipboard

Peoblems with updateState

Open BMo-design opened this issue 14 years ago • 2 comments

Hi arieh, very good job! I will use your HistoryManager in my site, but I have a problem with your updateState Function. When I add "select":"L1;" and then add "b":"hide" the funktion fire the select-changed event. But when I add "select":"L1;L2;" and then add "b":"hide" the funktion do not fire the select-changed event. Why? The second case is the case I want.

Greetings from Germany Benedikt

BMo-design avatar Jun 14 '10 13:06 BMo-design

can you send a use case that i can work on? i'm not sure i understand something like: HM.set('a','b'); //what i want HM.set('c','e'); //what i want so that i can create a test?

arieh avatar Jun 15 '10 05:06 arieh

I've added this test page: http://arieh.github.com/HistoryManager/test1.html

steps: HM.set('select','L1'); //select-added HM.set('b','hide'); //b-added HM.set('select','L2');//select-changed HM.set('b','hide');//won't do anything because it wasn't changed

arieh avatar Jun 15 '10 06:06 arieh