As stated on SO , I recently implemented JQ 2.1.0, and ran into an issue on a simple object reference acquisition. I remember previous implementations where i only had to do
var obj = $("selector");
and this acquisition would get me all references to accessors and such that i need to perform.
The biggest problem is now i have do use an indexer of child control in order to get access to the object in question.
var wnd = $( "#chat" )[0];
This seems kind of counter intuitive, when i only have one html element with the "chat" id. I understand that some objects may have children, and some selectors (ie Class/Html selectors) might produce multiples of the object as their could be many of them.
My only question is why require every object to be access via indexer instead of checking to see if the selector object has children and using the children accessor to iterate through the array of potential objects.