[xinf] DOM Events?

daniel fischer dan at f3c.com
Fri Jun 23 12:56:02 CEST 2006


Nicolas Cannasse <ncannasse at motion-twin.com> (on Fri, 23 Jun 2006 09:50:50 +0200):

  > Dan would that suit XInf needs ?

looks great to me. i'd never use the addListener function though, i find it too weird to have a single handleEvent function that fixes on a specific event type.

the three things i still have in mind about it are:
 * is it possible to "bind" this to other languages, eg, generate events from C? i guess it is, after all one just has to produce an object that fits the signature of the event type...
 * would maybe a different naming scheme (calling the former EventSite "Slot", and the events "Signal"s?) make it a bit clearer? I first thought that this would be good, but now i'm actually fine with "Dispatcher" (for the EventSite), i think :)
 * removing events still requires me to store a listener reference-- what do you think about not using the automatic delegation creation, but instead, in the Listener object store target object and method- so i could then removeListeners(myTargetObject)?

These are just ideas though-- i'm happy to go along with the proposal as it is. And thanks for helping out!

-dan

-- 
http://0xDF.com/
http://iterative.org/


More information about the xinf mailing list