File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -6,32 +6,6 @@ var PropTypes = require('prop-types');
66var createReactClass = require ( 'create-react-class' ) ;
77var isVisibleWithOffset = require ( './lib/is-visible-with-offset' )
88
9- function throttle ( callback , limit ) {
10- var wait = false ;
11- return function ( ) {
12- if ( ! wait ) {
13- wait = true ;
14- setTimeout ( function ( ) {
15- callback ( ) ;
16- wait = false ;
17- } , limit ) ;
18- }
19- }
20- }
21-
22- function debounce ( func , wait ) {
23- var timeout ;
24- return function ( ) {
25- var context = this , args = arguments ;
26- var later = function ( ) {
27- timeout = null ;
28- func . apply ( context , args ) ;
29- } ;
30- clearTimeout ( timeout ) ;
31- timeout = setTimeout ( later , wait ) ;
32- } ;
33- }
34-
359function normalizeRect ( rect ) {
3610 if ( rect . width === undefined ) {
3711 rect . width = rect . right - rect . left ;
You can’t perform that action at this time.
0 commit comments