[EDIT: Take the example lightly. It's not a real implementation, just an example I slapped together while writing the post; Trying to get the use-case across.]
I read some very valid points you brought up about publish/subscribing to global channels in other posts, and I see how those points can be applied to global controllers. I'll see if I can find the other post you're referring to.
I don't quite see the problem with this Controller though. It's not extensible, or easily changed for different implementations of a tooltip, but if the implementation is consistent for all tooltips, it still seems to be a solution. I refrain from calling it a "good" solution because I'm still learning the appropriate way to use events w/ JSMVC (Please, pardon my ignorance :)).
I may be interpreting your response incorrectly, so these responses may not apply:
- With this controller I can add any number of anchor tags with "show-tooltip" class that, when clicked, bubble, are caught by the controller, and show the tooltip with content loaded using the target elements href attribute.
- For localized tooltips, would it be wrong to use data attributes on the target element that get read by the controller? <a href="/" data-localized="true" />.
Would it be possible for you to provide a small outline of a Controller that would be more appropriate to use in a case like this?