daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Nov 13th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Renderer = class {
  2.   async render(data) {
  3.     if (!(data instanceof Data)) throw 'invalid data type';
  4.     const [title, header, items] = await data.getData();
  5.     this._title = title;
  6.     this._header = header;
  7.     this._items = items;
  8.     this._render();
  9.   }
  10.   _render() {
  11.     throw '_render must override';
  12.   }
  13. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top