When I use any mockup-pattern like <span class="pat-moment">2016-07-30T15:10:00</span>
in a faceted:view
(a custom view for eea.facetednavigation) the pattern is not working at all since the content is injected with javascript.
In https://stackoverflow.com/a/35699974/637399 @ebrehault wrote that Patterns are initialized at load time and if the DOM changes and contains new elements, you need to call Registry.scan($('#content-core'))
where Registry
is pat-registry
and #content-core
the injected part of the page.
How do I do that in the context of eea.facetednavigation (https://github.com/eea/eea.facetednavigation)? It uses a event-system (see https://github.com/eea/eea.facetednavigation/blob/master/eea/facetednavigation/browser/javascript/view.js). How do I listen to one of these events, which one do I need and how do I then call the scan?