chaijs/chai-jquery — pull request #14 by spiralman (2012-06-10 02:38:22+00:00)
Title: Support length() assertion on non-jQuery objects. Closes #13

The have property override always returns a function, and functions have a length property which hides the Chai length() assertion.

This change only returns a have() assertion function if the context is a jQuery object, otherwise it calls _super without returning anything, which allows access to the standard length() assertion from Chai.

Fixes https://github.com/chaijs/chai-jquery/issues/13