Bug Tracker

Changes between Initial Version and Version 1 of Ticket #11570, comment 9


Ignore:
Timestamp:
Apr 4, 2013, 6:24:39 PM (7 years ago)
Author:
Rick Waldron
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11570, comment 9

    initial v1  
    11The current design in 2.x is designed to support a smooth transition to a WeakMap as soon as they are available in at least 3 browsers (I picked that number arbitrarily).
    22
    3 Putting the data directly on the element would mean exposing jQuery's own interally used data (there are actually two sets of data for every object or element: user and private-interal), which we can't do. As long as user code does all of it's DOM manipulation via jQuery, then data will be correctly cleaned up (removed).
     3Putting the data directly on the element would mean exposing jQuery's own interally used data (there are actually two sets of data for every object or element: user and private-interal), which we can't do. As long as user code does all of its DOM manipulation via jQuery, then data will be correctly cleaned up (removed).