madrobby/zepto — pull request #470 by RemiChaignon (2012-04-06 00:28:52+00:00)
Title: Access data of an appended element

When appending an element with data attributes, we couldn't grab those attributes by calling .data() on the appended element. So we added that functionality (as we work with templates, this functionality was required).
Added a test called testGettingDataAfterAppend to validate the code.

Plus this fixes the issue in testAllData where the data-mode of data_full would be undefined. Why was there an assert on it being undefined? Was that the desired behavior? I changed that assert.