adobe-webplatform / eve

Custom events…
http://dmitry.baranovskiy.com/eve/
Apache License 2.0
316 stars 111 forks source link

Tweaked unbind call in once to ensure handler is removed #11

Closed DamonOehlman closed 11 years ago

DamonOehlman commented 11 years ago

Hey Dmitry,

Just made a couple of tweaks to the once implementation to unbind the handler before triggering the handler. This means that in a case where the handler throws an exception, eve will still unbind the handler. Came across the behaviour while writing some tests that throw exceptions.

Cheers, Damon.

DmitryBaranovskiy commented 11 years ago

I can’t merge it, but I will merge it by hands.