influxweb
2/2/2017 - 10:18 PM

bling.js - Based on https://gist.github.com/paulirish/12fb951a8b893a454b32

/**
 * bling.js
 * Based on https://gist.github.com/paulirish/12fb951a8b893a454b32
 * WesBos version https://pbs.twimg.com/media/C3sNpSGUoAIKh5G.jpg:large
 */
"use strict";

var $ = document.querySelector.bind(document),
	$$ = document.querySelectorAll.bind(document);

Node.prototype.on = window.on = function (name, fn) {
	this.addEventListener(name, fn);
};

NodeList.prototype.__proto__ = Array.prototype;

NodeList.prototype.on = NodeList.prototype.addEventListener = function (name, fn) {
	this.forEach(function (elem, i) {
		elem.on(name, fn);
	});
};