xuijs / xui

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

attr() should return zero length array for non-existing attribute #49

Closed i8ramin closed 13 years ago

i8ramin commented 13 years ago

attr('attribute-name') function should return zero-length array if attribute does not exist. Currently, it returns an array of length 1 with an empty string value.