xuijs / xui

A tiny javascript framework for mobile web apps.
http://xuijs.com
788 stars 106 forks source link

attr() function should return array of length 0 for non-existing attributes #45

Closed i8ramin closed 13 years ago

i8ramin commented 13 years ago

Currently, if you try to read an attribute of an element, and that attribute does not exist .. the attr() functions returns an array of size 1 .. which the contents of that array as an empty string.

I believe this should return an zero length / empty array.

i8ramin commented 13 years ago

Sorry about the multiple (non-related) commits .. still figuring out this whole Pull Request stuff.