brianleroux / xui

A tiny javascript framework for mobile web apps.
http://github.com/xui/xui
391 stars 159 forks source link

hasClass() should return false on an empty set #41

Closed bryfox closed 13 years ago

bryfox commented 13 years ago

Feel free to invalidate this, but (coming from jQuery, at least) I would expect hasClass() to return false for any class when tested against an empty set of elements.

Patch + spec: http://github.com/bryfox/xui/commit/64bc66a50c2147f420d277e6b482a3a04a56a74d

filmaj commented 13 years ago

Merged into latest build, but latest changes are going into a new repo:

www.github.com/xui/xui

Thanks for the fix and test!

brianleroux commented 13 years ago

thank you!