all files / components/ Debounce.js

100% Statements 8/8
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                             
import React, { Component } from 'react';
import Debouncer from '../classes/processors/Debouncer';
import Base from './Base';
 
export default class Debounce extends Base {
  static defaultProps = {
    handler: '',
    handlers: [],
    time: 400
  };
 
  constructor(props) {
    super(props);
 
    this._throttler = new Debouncer(this.el, this.handlersToWrap, props.time);
  }
}