Skip to content

Instantly share code, notes, and snippets.

View hidde's full-sized avatar

Hidde de Vries hidde

View GitHub Profile
@hidde
hidde / enhancer.js
Last active August 29, 2015 14:10 — forked from matijs/enhancer.js
$(function() {
'use strict';
// kick off js enhancements
$('[data-enhancer]').each(function() {
var enhancer = this.getAttribute('data-enhancer');
if (enhancers && typeof enhancers[enhancer] === 'function') {
enhancers[enhancer].call(this);
}
else {
if (window.console && typeof console.log === 'function') {