This commit is contained in:
Gavin McDonald
2018-09-28 20:42:03 -04:00
parent 90ea336f5d
commit 0e2b7ea69d

View File

@@ -9,26 +9,6 @@ export const sqrt2 = Math.sqrt(2);
// (2*S gives long width) // (2*S gives long width)
export const sqrt3 = Math.sqrt(3); export const sqrt3 = Math.sqrt(3);
//export function throttleEvent(type, name, obj) {
// obj = obj || window;
// let running = false;
//
// let throttle = () => {
// if (!running) {
// running = true;
//
// requestAnimationFrame(() => {
// obj.dispatchEvent(new CustomEvent(name));
// running = false;
// });
// }
// }
//
// obj.addEventListener(type, throttle);
//}
//
//throttleEvent('resize', 'optimizedResize');
export function clone(obj) { export function clone(obj) {
return JSON.parse(JSON.stringify(obj)); return JSON.parse(JSON.stringify(obj));
} }