Can I, and if so, how can I link javascript objects to DOM nodes? My requirements:
- real objects, not just JSON-stringified attributes or so
- do not leak memory
- should also work in non-standard browsers like IE8 or so
I thought about this with a global array that stores data and puts indexes in the attributes of the nodes, but this will be a memory leak, because there is still a link from the array to the data when the nodes are not in the th HOUSE. This is for a web application, so this can be a problem.
thejh source
share