This example is focusing on single component, how we can manage multiple components and their multiple listeners?
In clasic dialog, we were having option to declare listeners at field level of dialogs but in touch UI case we've cq.author.dialog clietlibs defined under specific component. But the problem here is in each component wherever this clientlib will be used, all respective js files will be called, can't we've a simpler way to declare js which should focus only on specific component.