Skip to content

Instantly share code, notes, and snippets.

export class Emitter {
constructor() {
this.store = {};
}
on(eventList, handler) {
if (typeof handler !== 'function') {
throw new Error('Handler must be a function');
}
@demoon84
demoon84 / breakpoint.scss
Created March 20, 2017 06:36
breakpoint mixin
// Breakpoint
$mobile: 320px;
$mobileMax: 425px;
$tablet: 640px;
$pc: 960px;
$max: 1260px;
$hidpi: "$hidpi";
@mixin breakpoint($name) {