madrobby/zepto — pull request #456 by RemiChaignon (2012-03-27 21:59:19+00:00)
Title: Extend data() functionality to work with objects

Calling data() on an element will return an object with all the key-value pairs of the "data-name" attributes of that element.
Calling data(object) on an element will extend the element with the new key-value pairs of the "data-name" attributes.

Created testObjectData() to validate the code.
Also modified testAllData() as it was expecting the data to be completely replaced instead of just extended as explained here: http://api.jquery.com/data/