RateLimitedFunc -> rate_limited_func

This commit is contained in:
Luke Barnard 2017-07-12 18:18:13 +01:00
parent 3e1a909b1d
commit 188a58e5c7
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ import { _t } from 'matrix-react-sdk/lib/languageHandler';
import KeyCode from 'matrix-react-sdk/lib/KeyCode'; import KeyCode from 'matrix-react-sdk/lib/KeyCode';
import sdk from 'matrix-react-sdk'; import sdk from 'matrix-react-sdk';
import dis from 'matrix-react-sdk/lib/dispatcher'; import dis from 'matrix-react-sdk/lib/dispatcher';
import RateLimitedFunc from 'matrix-react-sdk/lib/ratelimitedfunc'; import rate_limited_func from 'matrix-react-sdk/lib/ratelimitedfunc';
import AccessibleButton from 'matrix-react-sdk/lib/components/views/elements/AccessibleButton'; import AccessibleButton from 'matrix-react-sdk/lib/components/views/elements/AccessibleButton';
module.exports = React.createClass({ module.exports = React.createClass({
@ -68,7 +68,7 @@ module.exports = React.createClass({
this.onSearch(); this.onSearch();
}, },
onSearch: new RateLimitedFunc( onSearch: new rate_limited_func(
function() { function() {
this.props.onSearch(this.refs.search.value); this.props.onSearch(this.refs.search.value);
}, },