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.
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.
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?