Skip to content

Instantly share code, notes, and snippets.

View koblas's full-sized avatar

David Koblas koblas

View GitHub Profile
@koblas
koblas / gist:3136961
Created July 18, 2012 15:35 — forked from zmaril/gist:3136483
Puma.com source code
(function (E, B) {
function ka(a, b, d) {
if (d === B && a.nodeType === 1) {
d = a.getAttribute("data-" + b);
if (typeof d === "string") {
try {
d = d === "true" ? true : d === "false" ? false : d === "null" ? null : !c.isNaN(d) ? parseFloat(d) : Ja.test(d) ? c.parseJSON(d) : d
} catch (e) {}
c.data(a, b, d)
} else d = B