Skip to content

Conversation

@jafl
Copy link
Contributor

@jafl jafl commented Jan 14, 2019

Replacement for #1637

Breaking the GC model drags us back to manual memory management. IE6 and IE7 force us to do this anyway, but YUI should not force this upon developers who choose to not target these older browsers.

Another example: If I dereference a Node instance and pass it to a 3rd party widget that operates on raw DOM elements, then even if that widget cleans up correctly, the DOM node won't get cleaned up as long as the Node instance still exists.

By using a WeakMap to store the mapping between DOM nodes and Y.Node's, none of this is a problem.

@andrewnicols
Copy link
Contributor

Just to remind you that YUI is no longer under any development and no issues will be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants