Skip to content

Commit 7531949

Browse files
committed
Removed: unused functions.
1 parent a90d03a commit 7531949

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

visibility-sensor.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,6 @@ var PropTypes = require('prop-types');
66
var createReactClass = require('create-react-class');
77
var 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-
359
function normalizeRect (rect) {
3610
if (rect.width === undefined) {
3711
rect.width = rect.right - rect.left;

0 commit comments

Comments
 (0)