From 3a09348e3b4cf0ad04b94faa507602efa13abbc5 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 16 Feb 2014 23:01:36 -0800 Subject: [PATCH] remove cruft that uglify found --- public/js/gitter.js | 1 - public/js/projects.js | 12 +----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/public/js/gitter.js b/public/js/gitter.js index 5bd2e95..b8cf2c7 100644 --- a/public/js/gitter.js +++ b/public/js/gitter.js @@ -721,7 +721,6 @@ // bootstrap loader from LABjs (load is declared earlier) load = function(url) { var oDOC = document - , handler , head = oDOC.head || oDOC.getElementsByTagName("head") // loading code borrowed directly from LABjs itself diff --git a/public/js/projects.js b/public/js/projects.js index 287bece..c7823fa 100644 --- a/public/js/projects.js +++ b/public/js/projects.js @@ -8,10 +8,6 @@ var data = createObjectStore(SJS.projectName) - function addClass(el, name) { - var c = el.className || name - if (!c.match(new RegExp('\b' + name + '\b', 'i'))) c += ' ' + name - } function html(id, h) { document.getElementById(id).innerHTML = h } @@ -28,16 +24,10 @@ } } - function highlight(id) { - document.getElementById(id).style.className = ' highlight' - } function textHighlight(id, t) { text(id, t) document.getElementById(id).className = ' highlight' } - function hide(id) { - document.getElementById(id).style.display = 'none' - } function langsByUsage(langs) { return Object.keys(langs).sort(function(a, b) { @@ -69,7 +59,7 @@ function updateN(name, things) { var pluralized = things.length == 1 ? name.replace(/s$/, '') : name - textHighlight('n' + name, things.length + ' ' + name) + textHighlight('n' + name, things.length + ' ' + pluralized) } var t = data.get('t-' + SJS.projectName)