Open dfreedm opened 6 years ago
It is worth noting that in many cases, the current approach is utilized to bind the context of adapter methods to the component instance. So while all instances share the same behavior, they do not share the same this
.
As currently specified, Foundation Adapters must be a bag of bound functions.
This uses far more memory than necessary, as the functions must be created for each component instance, but all instances share essentially the same behavior.
Instead, an Adapter class could be provided for each component that could be extended and overridden as necessary, so that all component instances share the same Adapter class.