SHARE
TWEET

Untitled

a guest Aug 17th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function unLoad() {
  2.   const { events } = this.props;
  3.   const { editor } = this.state;
  4.   if (!editor) return;
  5.  
  6.   const { change, ...eventsSansChange } = events;
  7.   for (const [event, handler] of Object.entries(eventsSansChange)) {
  8.     editor.on(event, handler);
  9.   }
  10. }
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