On Jun 11, 8:00 pm, "Miguel Beltran R." <yourpa...@gmail.com> wrote:
> Hi list
> Trying to do made more functions generics now I try with fire option.
> But this not work
> ('element1').observe('change',
> function(evt){document.fire.curry(evt.element()).('space:observer');});
> ('element1').observe('change',
> function(evt){document.fire.bind(evt.element()).('space:observer');});
> ('element1').observe('change',
> function(evt){document.fire.('space:observer').curry(evt.element());});
> ('element1').observe('change',
> function(evt){document.fire.('space:observer').bind(evt.element());});

There are too many permutations here to find correct way by trial and
error ; )

You haven't really said what it is you're trying to do, or at least
what you expect event handler to be - its `this`, its `arguments`,

Perhaps, you want something like this:

$('element1').observe('change', function(ev) {
  document.fire('space:observer', { element: ev.element() });
document.observe('space:observer', function(ev) {
  console.log('event: %o, element: %o', ev, ev.memo.element);


You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to