google-code-export / nekonme

Automatically exported from code.google.com/p/nekonme
1 stars 0 forks source link

Jeash hasEventListener / removeEventListener #262

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.addEventListener
2.removeEventListener
3.check hasEventListener

What is the expected output? What do you see instead?
false

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

Please provide any additional information below.

When removing an event listener, must check if the list is empty then set the 
list to "undefined" according with hasEventListener body.

jeash.events.EventDispatcher L:144

Adding this piece of code, solve the problem :

if ( list.length == 0 )
    untyped jeashEventMap[type] = __js__("undefined");

Original issue reported on code.google.com by filt3...@gmail.com on 17 Sep 2012 at 8:56