Using data() on JavaScript objects sets fields directly on the object. Note that...
authorDave Reed <dareed@microsoft.com>
Wed, 29 Sep 2010 13:46:25 +0000 (06:46 -0700)
committerJohn Resig <jeresig@gmail.com>
Wed, 29 Sep 2010 13:46:25 +0000 (06:46 -0700)
commitcb811c04b035eb2d652b0831e20ea1d3a4d9c448
treeea5d766ad8f3dcc9b33adfd734d04e26ddf27d36
parentec7ea3fba15379ebe8ddff5f6c99ec3faf8d6d17
Using data() on JavaScript objects sets fields directly on the object. Note that events are now a property of a function (to avoid JSON serialization - and only in the case of JavaScript objects, not DOM nodes). Fixes #6807.
src/data.js
src/event.js
test/unit/data.js
test/unit/event.js