aboutsummaryrefslogtreecommitdiff
path: root/public/js/app.js
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-08-09 04:38:45 -0400
committerThedro Neely <thedroneely@gmail.com>2019-08-09 04:38:45 -0400
commit12f912164b67683af296b4d2d10db347ae7e4a2e (patch)
tree1504897f39947cef1cc1b8d7f3a2332039e65895 /public/js/app.js
parentc9561f551aee8aa031fbb97788268aa6e3041667 (diff)
downloadthedroneely.com-12f912164b67683af296b4d2d10db347ae7e4a2e.tar.gz
thedroneely.com-12f912164b67683af296b4d2d10db347ae7e4a2e.tar.bz2
thedroneely.com-12f912164b67683af296b4d2d10db347ae7e4a2e.zip
public/js/app: Add run once function
Diffstat (limited to 'public/js/app.js')
-rw-r--r--public/js/app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 7d5b611..94d5912 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -11,6 +11,7 @@ function hasClass (el, cl) { var a = el.className.split(' '); return afind(cl, a
function addClass (el, cl) { if (el) { var a = el.className.split(' '); if (!afind(cl, a)) { a.unshift(cl); el.className = a.join(' ')}} }
function remClass (el, cl) { if (el) { var a = el.className.split(' '); arem(a, cl); el.className = a.join(' ') } }
function togClass (el, cl) { if (hasClass(el, cl)) { remClass(el, cl); return; } addClass(el, cl); }
+function runOnce(action) { runOnce = function(){}; action(); }
/**