Hi,

> As it stands the solution is having a "var self = 
> this" variable declared in the same function context as the event callback
> closure is defined... but am I the only one who sees it as a bit way too
> messy?

I guess so ;-) I don't think it is messy, actually it is very clear what 
happens and why it should be that way. I think your additional parameter is a 
lot more messy.

Actually I don't see any problem with "var selft=this".

> I guess only a few people use class-based approaches like I do, that
> might a possible explanation why no one has complained about it before

The "var selft=this"-construct has no problems with your class-based approach. 
Maybe it is not comfortable for you, but JavaScript is not a class-based 
language and jQuery is not a class-based library.

Christof

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

Reply via email to