Skip to content

Instantly share code, notes, and snippets.

View giopunt's full-sized avatar

Giovanni Puntil giopunt

View GitHub Profile
(function () {
var forEach = [].forEach,
regex = /^data-(.+)/,
dashChar = /\-([a-z])/ig,
el = document.createElement('div'),
mutationSupported = false,
match
;
function detectMutation() {