The nodeName should default to an empty String and only set the nodeName if a node exists in the jQuery object. That way the switch statement will break and continue to line 116 where a more useful error message will be thrown.
Not a huge issue, but one I ran into a little bit while writing tests.
If no nodes exist that match .foo then
will result in an exception, because https://github.com/LearnBoost/tobi/blob/master/lib/jquery/index.js#L89 is expecting a node to exist.
The nodeName should default to an empty String and only set the nodeName if a node exists in the jQuery object. That way the switch statement will break and continue to line 116 where a more useful error message will be thrown.
Not a huge issue, but one I ran into a little bit while writing tests.
I'll try to get to this sometime this week.