>> select.bind('change', function() {
>>      if (confirm('Are you sure?')) {
>>          cachedOnChange();
>
> The function uses 'this', which is not "available" anymore when I
> call it...

I did this:

select.onchange = cachedOnChange;
select.onchange();

And it seems to work well!

I'm not sure there are no side effects through...

>>      } else {
>>          ...
>>      }
>> });
>>
>>
>> Does that work for you?
>
> Almost, there is just the "this" issue to solve... thanks!
>
>
> It would be nice to have .bindBefore() and .bindAfter() methods... ;-)
>
>
> -Nicolas
>
> -- 
> Nicolas "Brush" HOIZEY
> Clever Age   : http://www.clever-age.com/
> Gastero Prod : http://www.gasteroprod.com/
> Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002
> phpHeaven    : http://www.phpheaven.net/
>
>
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/



-Nicolas

-- 
Nicolas "Brush" HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002
phpHeaven    : http://www.phpheaven.net/




_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to