Fix function redeclaration

This commit is contained in:
Alex Ling 2020-12-27 09:26:27 +00:00
parent ec5256dabd
commit 946017c8bd

View File

@ -22,28 +22,6 @@ const capitalize = (str) => {
return str.charAt(0).toUpperCase() + str.slice(1); return str.charAt(0).toUpperCase() + str.slice(1);
}; };
/**
* Set an alpine.js property
*
* @function setProp
* @param {string} key - Key of the data property
* @param {*} prop - The data property
*/
const setProp = (key, prop) => {
$('#root').get(0).__x.$data[key] = prop;
};
/**
* Get an alpine.js property
*
* @function getProp
* @param {string} key - Key of the data property
* @return {*} The data property
*/
const getProp = (key) => {
return $('#root').get(0).__x.$data[key];
};
/** /**
* Get the thumbnail generation progress from the API * Get the thumbnail generation progress from the API
* *