You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Jonathan Sinovassin-Naïk (Jira)" <ji...@apache.org> on 2023/02/16 09:56:00 UTC

[jira] [Assigned] (UNOMI-742) Remove useless listener

     [ https://issues.apache.org/jira/browse/UNOMI-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Sinovassin-Naïk reassigned UNOMI-742:
----------------------------------------------

    Assignee: Jonathan Sinovassin-Naïk

> Remove useless listener
> -----------------------
>
>                 Key: UNOMI-742
>                 URL: https://issues.apache.org/jira/browse/UNOMI-742
>             Project: Apache Unomi
>          Issue Type: Bug
>          Components: unomi-tracker
>    Affects Versions: unomi-tracker-1.1.0
>            Reporter: Jonathan Sinovassin-Naïk
>            Assignee: Jonathan Sinovassin-Naïk
>            Priority: Major
>
> When calling the function registerOptimizationTest, a listener on DOMcContentLooaded is added to call _dispatchJSExperienceDisplayedEvent to register the event to the displayedEvent.
> This listener is not necessary as the event is registered in wem.digitalData.events trough the _registerEvent function and the function _dispatchJSExperienceDisplayedEvents is already called when the tracker starts to register the variants with to the events in wem.digitalData.events.
>  
> With the current behaviour, the variant is stored twice. By removing the listener in theregisterOptimizationTest, it won't be the case anymore 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)