How do you close a tab from code?


#1

Wow do you close a tab item from code? It is not an editor. It is an Item I created mixed in with the editors.

I can close it with the x in the tab but I haven’t been able to track down what is called from that. jQuery takes the event and then I’m lost. I also can’t find it in the core tab code.

BTW, setting breakpoints on DOM elements isn’t working even though I’ve used it before.

EDIT: Never mind. I’ve found the right part of the code. I’ll post how I do it when I figure it out.


#2

Pane::destroyItem?


#3

Duh. Thanks. My brain wasn’t working yesterday.