Template:Team:Tsinghua-A/LogoCode
From 2014.igem.org
(Difference between revisions)
Line 12: | Line 12: | ||
function H(e, n, r) { | function H(e, n, r) { | ||
- | if (r === t && e.nodeType === 1) { | + | if (r === t && |
+ | e.nodeType === 1) { | ||
var i = "data-" + n.replace(P, "-$1").toLowerCase(); | var i = "data-" + n.replace(P, "-$1").toLowerCase(); | ||
r = e.getAttribute(i); | r = e.getAttribute(i); | ||
Line 28: | Line 29: | ||
var t; | var t; | ||
for (t in e) { | for (t in e) { | ||
- | if (t === "data" && v.isEmptyObject(e[t])) continue; | + | if (t === "data" && |
+ | v.isEmptyObject(e[t])) continue; | ||
if (t !== "toJSON") return !1 | if (t !== "toJSON") return !1 | ||
} | } | ||
Line 47: | Line 49: | ||
function at(e, t) { | function at(e, t) { | ||
- | do e = e[t]; while (e && e.nodeType !== 1); | + | do e = e[t]; while (e && |
+ | e.nodeType !== 1); | ||
return e | return e | ||
} | } | ||
Line 108: | Line 111: | ||
function _t(e) { | function _t(e) { | ||
- | Et.test(e.type) && (e.defaultChecked = e.checked) | + | Et.test(e.type) && |
+ | (e.defaultChecked = e.checked) | ||
} | } | ||
Revision as of 20:17, 16 October 2014