[jQuery] best practice OOP for use with jQuery

[jQuery] best practice OOP for use with jQuery

Hey, folks. I have a question about best practices for writing object-oriented code for use in jQuery. I've been working through understanding this issue and figured the geniuses on this forum would be the ones to ask for advice.
I've created an example page with documented source (don't worry, it's a really small example): <a href="http://briz.glyphix.com/js-scope/">http://briz.glyphix.com/js-scope/</a>
I'm mostly interested in how to cleanly and reliably deal with scope issues in callbacks. More specifically:
<ul><li>When jQuery uses .apply() or .call() in its callbacks, how can one be sure of variable scope?</li><li>Is there any chance the jQuery.foo object will clobber other instances of the same object?</li><li>Or that these objects will become detached from their elements?
</li><li>This is overkill for such a simple example, but is it a good approach for moderately complex code?</li></ul>
--
_____________________________________
Brad Brizendine
CTO, Glyphix <a href="http://www.glyphix.com/">
http://www.glyphix.com/</a>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/