Hi Robert,
that's just a proof of concept easily re-adaptable for the new jQuery data.
Main differences:
1 - rather than primitive number, the expando is associated to a Number
instance. This avoids dirty string representation ( specially for those that
need/parse directly generated HTML ... in
Binding of 'submit' events appears to be broken in 1.4 if data is not supplied.
Sorry, in a bit of a rush, so here's the patch:
Index: src/event.js
===
--- src/event.js(revision 6617)
+++ src/event.js(working copy)
On Wed, Oct 14, 2009 at 1:18 PM, Mark Gibson jollyt...@gmail.com wrote:
Thanks John, that makes complete sense, I too am not sure why jQuery
UI doesn't use a counter either.
Thanks for the patch. Fixed.
http://groups.google.com/group/jquery-ui-dev/browse_thread/thread/7e1fe2a53bf0c7d3
-
Of course, although it would simplify the $.data() implementation
(speed performances too) it would breaks compatibility with many
existent plugins. However, $.data() in 1.4 will breaks it already...
If developers want to switch to this style they're absolutely welcome
to (in fact, we already