| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 4× 1× 4× | 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);
}
}
|