This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* classList.js MOD by aMarCruz | |
* 2015-05-07 | |
* Supports IE9+ and modern browsers. | |
* | |
* classList.js: Cross-browser full element.classList implementation. | |
* 1.1.20150312 | |
* | |
* By Eli Grey, http://eligrey.com | |
* License: Dedicated to the public domain. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (global) {'use strict'; | |
// (C) Andrea Giammarchi @WebReflection | |
// https://gist.github.com/WebReflection/ea3e833b4de07d877479 | |
var | |
tick = false, | |
rAF = global.requestAnimationFrame || | |
global.webkitRequestAnimationFrame || | |
global.mozRequestAnimationFrame || | |
global.msRequestAnimationFrame || | |
global.oRequestAnimationFrame || |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// used to retrieve template content | |
const templates = new WeakMap; | |
// used to retrieve node updates | |
const updates = new WeakMap; | |
// hyperHTML, the nitty gritty | |
function hyperHTML(chunks, ...interpolations) { | |
// if the static chunks are unknown |
OlderNewer