mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
remove cruft that uglify found
This commit is contained in:
parent
4676585c78
commit
3a09348e3b
2 changed files with 1 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue