* Create object structure for the given event type and element, if it doesn't already exist * @param {*} event_type * @param {*} element
(event_type, element)
| 55 | * @param {*} element |
| 56 | */ |
| 57 | function create_top_values_to_plot_structure(event_type, element) { |
| 58 | !(event_type in top_values_to_plot) ? top_values_to_plot[event_type] = {} : true; |
| 59 | !(element in top_values_to_plot[event_type]) ? top_values_to_plot[event_type][element] = {} : true; |
| 60 | !("keys" in top_values_to_plot[event_type][element]) ? top_values_to_plot[event_type][element].keys = [] : true; |
| 61 | !("values" in top_values_to_plot[event_type][element]) ? top_values_to_plot[event_type][element].values = [] : true; |
| 62 | !("colors" in top_values_to_plot[event_type][element]) ? top_values_to_plot[event_type][element].colors = [] : true; |
| 63 | } |
| 64 | |
| 65 | |
| 66 | /** |
no outgoing calls
no test coverage detected