Read pane/item directly off tab element instead of looking up via DOM
Read pane/item directly off tab element instead of looking up via DOM

Determining a tab’s pane or item via the DOM is unnecessary because we
store this state directly on each tab. It was leading to exceptions in
cases where a tab’s pane was being removed as a side-effect of dragging
because the tab didn’t have a parent element. This happens when the
‘core.removeEmptyPanes’ config setting is enabled.

Signed-off-by: Max Brunsfeld <78036c9b69b887700d5846f26a788d53b201ffbb@github.com>
Signed-off-by: Antonio Scandurra <0e17b4d558b07b12cd221e35c438be378ba118cf@github.com>

atom/tabs