views:

21

answers:

1

does anyone know how to convert a normal javascript event to a mochikit wrapped event?

cant seem to find how to do it anywhere...

regards, P.V. Goddijn.

+1  A: 

Have a look in the MochiKit source code Signal.js. You'll find the relevant section is:

var E = self.event;
...
new E(src, nativeEvent);

To apply this to your own normal js event, you could do something like:

var mochi_event = new MochiKit.Signal.Event(element, event);

Is there an event that Signal.js doesn't cover?

EoghanM