Yeah...I couldn't find a good way to get $state completely out of there.  Tried setting it in the controller but that didn't work because of the directive's isolated scope.  For now I am setting a custom ```collapsed``` attributed on the state and then checking for it here.

Will come back to this at some point.