remove cruft that uglify found

This commit is contained in:
Sami Samhuri 2014-02-16 23:01:36 -08:00
parent 4676585c78
commit 3a09348e3b
2 changed files with 1 additions and 12 deletions

View file

@ -721,7 +721,6 @@
// bootstrap loader from LABjs (load is declared earlier) // bootstrap loader from LABjs (load is declared earlier)
load = function(url) { load = function(url) {
var oDOC = document var oDOC = document
, handler
, head = oDOC.head || oDOC.getElementsByTagName("head") , head = oDOC.head || oDOC.getElementsByTagName("head")
// loading code borrowed directly from LABjs itself // loading code borrowed directly from LABjs itself

View file

@ -8,10 +8,6 @@
var data = createObjectStore(SJS.projectName) 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) { function html(id, h) {
document.getElementById(id).innerHTML = h document.getElementById(id).innerHTML = h
} }
@ -28,16 +24,10 @@
} }
} }
function highlight(id) {
document.getElementById(id).style.className = ' highlight'
}
function textHighlight(id, t) { function textHighlight(id, t) {
text(id, t) text(id, t)
document.getElementById(id).className = ' highlight' document.getElementById(id).className = ' highlight'
} }
function hide(id) {
document.getElementById(id).style.display = 'none'
}
function langsByUsage(langs) { function langsByUsage(langs) {
return Object.keys(langs).sort(function(a, b) { return Object.keys(langs).sort(function(a, b) {
@ -69,7 +59,7 @@
function updateN(name, things) { function updateN(name, things) {
var pluralized = things.length == 1 ? name.replace(/s$/, '') : name 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) var t = data.get('t-' + SJS.projectName)