Skip to content

Commit

Permalink
Fix for bad squash / merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pmitros committed Jul 15, 2024
1 parent d61d2b0 commit 5bf5ec2
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions modules/lo_event/lo_event/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { storage } from './browserStorage.js';
* console.log(copied)
* // expected output: { a: 1, b: 2 }
*/
function copyFields (source, fields) {
export function copyFields (source, fields) {
const result = {};
if (source) {
fields.forEach(field => {
Expand Down Expand Up @@ -463,28 +463,6 @@ export function treeget(tree, key) {
return subtree;
}

/**
* Helper function for copying specific field values
* from a given source. This is called to collect browser
* information if available.
*
* Example usage:
* const copied = copyFields({ a: 1, b: 2, c: 3 }, ['a', 'b'])
* console.log(copied)
* // expected output: { a: 1, b: 2 }
*
* from util.js in lo_event.
*/
export function copyFields (source, fields) {
const result = {};
if (source) {
fields.forEach(field => {
result[field] = source[field];
});
}
return result;
}

/**
* Takes a number of seconds and converts it into a human-friendly time string in the format HH:MM:SS.
*
Expand Down

0 comments on commit 5bf5ec2

Please sign in to comment.