mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Previously viewForItem() would create a new view each time it was called with an item whose view did not implement setModel() even if a view for that item already existed in the pane. Now a WeakMap is used to map items to their view so they can be reused and cleaned up even when the view does not implement setModel().