Hi,
It sounds like you're using Exhibit 2? In which case I think you can
actually just add your code to the collection's listener queue.
exhibit.getDefaultCollection().addListener({
"onItemsChanged": function() {
setTimelineCenterDate()
}
});
You'll probably want to check if Timeline is currently the view on
display before running code that refers to it.
The tricky part with Exhibit 2 is running that at the right time, after
the default collection has been created, though if you've figured out a
way to listen to facet clicks, perhaps you'll already have an idea of
where to insert that into your flow.