yhyu1220 / reallysimplehistory

Automatically exported from code.google.com/p/reallysimplehistory
Other
0 stars 0 forks source link

Only one listener can be defined #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Invoke dhtmlHistory.addListener twice : 
 dhtmlHistory.addListener( function(){alert('listener1')} );
 dhtmlHistory.addListener( function(){alert('listener2')} );
2. Add one history event
 dhtmlHistory.add('test', {});
3. Click back button

What is the expected output? 
 One alert box 'listener2'

What do you see instead?
 Two consecutive alert box  'listener1', 'listener2' 

What version of the product are you using? On what operating system?
0.6

Please provide any additional information below.
- dhtmlListener.addListener() should have been named
dhtmlListener.setListener() 
- manage an internal list of listenerS to be invoked

Original issue reported on code.google.com by olivier....@gmail.com on 4 Jul 2008 at 2:55