4 ms·
Interesting concept, but seems like the same underlying principles of the .data() method (or at least how it was originally planned) except for the direct DOM m
by taitems 14y ago
Interesting concept, but seems like the same underlying principles of the .data() method (or at least how it was originally planned) except for the direct DOM manipulation. eg: A central object store where references are bound to DOM objects and not explicitly set on the object itself. Therefore no type coercion/guessing.
Regardless, if they "fix" the .data() method to your liking, at least then you'll be writing compatible, future-proof code. I've never had the problem myself so can't really weigh in, but replicating core functions has never ended well in my experience.