This is something I would find very useful. Could a few default
constructors be provided for mouse and keyboard events, which could
fill in some values with defaults?
You can simulate it like this:
connect(window, 'onclick', function(e){alert(e.target());})
// Simulate a click event on an element with id 'myDiv'
var ev = new MochiKit.Signal.Event(window, null);
ev.target = function(){return $('myDiv'); };
signal(window, 'onclick', ev);
Kevin Kaiser wrote:
> Assuming you MochiKit.Signal.connect() an event to an element, how do
> you then programmatically create the custom event object, set its
> parameters and then use it to signal the DOM element via
> MochiKit.Signal.signal() to fire the event and pass the custom event
> object to the connect()'d function?
>
> Thanks in advance!
>
> -Kevin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---