From 946017c8bd5f86951d901576ac28c6ab91482a14 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sun, 27 Dec 2020 09:26:27 +0000 Subject: [PATCH] Fix function redeclaration --- public/js/admin.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/public/js/admin.js b/public/js/admin.js index 4a5246a..5b6b29c 100644 --- a/public/js/admin.js +++ b/public/js/admin.js @@ -22,28 +22,6 @@ const capitalize = (str) => { 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 *