[dojo-contributors] dojo/on - needs context

Karl Tiedt ktiedt at gmail.com
Fri Mar 2 11:11:46 EST 2012


I was actually going to bring a similar issue up today. An app I was
working on last night has a call that is:

topic.subscribe("my/topic", "globalFunc") -- which used to work but
due to how subscribe gets passed to on()'s event emitting code, it
dies at an apply() call... turns out you also can get around this by
using null or window as the context...

It would seem this is a pretty extensive deviation from the API is it not?

-Karl Tiedt


More information about the dojo-contributors mailing list