I think the pass function is buggy. It is not binding the correct element
when there is nothing to bind.

Lets say:

var fn = function(){
  console.log(this);
};

var clickFn = fn.pass([1,2,3]);

$('anchor').addEvent('click', clickFn);

The console should show (IMO) the element with id=anchor, but it shows the
window element.
I know a patch for this but i wanna know from the core developers if this is
true or false before posting a ticket.
Cheers.

Fábio Miranda Costa
Engenheiro de Computação
http://meiocodigo.com

Reply via email to