xui/xui — pull request #60 by edufelipe (2011-11-14 20:12:28+00:00)
Title: Fix `x$(window)` behaviour on Safari 5.1.

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.