Joshua Poore commented on FLAGON-440:

added additional attachEventListener logic to attachHandlers:

Object.keys(refreshEvents).forEach(function(ev) {
 document.addEventListener(ev, function(e) {
 packageLog(e, events[ev]);
 }, true);


This allows packageLog and sendOnRefresh to listen to events in the 
refreshEvents category (e.g., submit), thereby packaging these events, adding 
them to log queue, and flushing the log queue to logging endpoint before 
refresh is completed.

> create sendOnRefresh function in sendlog
> ----------------------------------------
>                 Key: FLAGON-440
>                 URL: https://issues.apache.org/jira/browse/FLAGON-440
>             Project: Flagon
>          Issue Type: Sub-task
>          Components: UserALE.js
>    Affects Versions: UserALE.js 2.1.0
>         Environment: java script
>            Reporter: Joshua Poore
>            Assignee: Joshua Poore
>            Priority: Major
>             Fix For: UserALE.js 2.1.0
> In order to capture events that cascade and ultimately trigger page 
> refreshes, we need a function to wrap up sendLogs.
> This function needs to be included in the listening function of the event 
> handler for classes of events that initiate refreshes

This message was sent by Atlassian JIRA

Reply via email to