Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 13th, 2018 68 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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