I just want to add my 2 cents: In my experience there's 2 reasons to
instantiate a widget class with an element:
1. It's a single widget on the page: in which case it should probably
have a unique id and can be instantiated with var widget = new
Widget(widget_id);
2. There are numerous widgets of
Hi,
$('som_div')
$('som_div div.child_of_some_div')
I find myself frequently referencing child divs so use .down() a lot. It
would be convenient at times to get to that child div directly with the $
shortcut as I've exampled above.
If it's just syntactic sugar you're looking for, you can
I'm always looking for the sugar T.J. I like your off-the-cuff example,
I'll try that. Just curious, is this core worthy? Certainly the #1
consideration would be performance, but shouldn't be any performance hit if
no additional selector is found. The 2nd consideration would be, is it a