I want to trigger a custom event from within a handler of a native event, under these conditions:

* I want the handler to be in the form: `function(event, arg) {}`, where
* `event` is the original, native event (so I can call `event.preventDefault()`)
* `arg` is some data passed by the `trigger`er (in the handler of the original event)
* both events (native & custom) are fired on the same element (so the custom event's name must differ from the original one)

I was able to get this far, and it works:

```js
// the native event handler 
function(event) {
    var e = jQuery.Event("some_custom_event");
    e.foo = 'bar';
    $(this).trigger(e);
    if (e.isDefaultPrevented())
        event.preventDefault();
}

// an example handler for the custom event:
function (event) {
    alert(event.foo);
    event.preventDefault();
}

```

I guess I could also pass both the original event and `foo` as arguments to the custom event handler, but I wanted a standard-looking handler (no `function(event1,event2`).

Can what I want be done (easily) in jQuery?