Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handleChange(e) {
- e.persist();
- // info: "this.debounced" is defined at the class level
- if (!this.debounced) {
- this.debounced = _.debounce(() => {
- console.log('YATTA!');
- this.debounced.cancel();
- this.debounced = undefined;
- }, 500);
- this.debounced();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement