Thank you Jake!!!! I really appreciate the help. :)
I'm actually writing a plugin where I'd like to pass a single jQuery element to a few private methods.
Based on your reply, and because my methods are private, it sounds like I should be safe not wrapping the incoming "this" in a jQuery... i.e. pass it like so:
- _ = $(this);
- myMethod.call(_, 'baz');
... and work with it like so:
- var myMethod = function(arg) {
- // ...
- var $el = this;
- // ...
- }
... and just be sure that I document what should get passed.
Does that sound logical?
Thanks again! I really appreciate the help! :)
Cheers,
M