On release 2.3.0 there is a bug caused by the fact that window objects in Safari define a numeric length of 0.
Because of the testing order xui calls slice(window), which in turn returned an empty array and breaks the code.
This patch just inverts the testing order and everything works.
Fix `x$(window)` behaviour on Safari 5.1.
`window` objects in Safari define a numeric length of 0, causing `slice(window)` to
be called, which in turn returned an empty array.
This little issue caused `x$(window)` to be the same as `x$()`.
Looks like this is also happening in Chrome 15. I'm going to merge your fix in but also try to add a test for this as well.
Adding a test for issue #60
I've merged this in @ 3c9fcad. Also added a test for this @ 41e4dd0.
Thank you for your contribution!
P.S. added you to the contributor list @edufelipe :)
Thanks a lot @filmaj!