Skip to content

Commit 92aa2fa

Browse files
authored
Merge pull request #136 from rmariuzzo/fix-lgtm-alerts
Fix LGTM alerts
2 parents 320343a + 7531949 commit 92aa2fa

File tree

3 files changed

+0
-30
lines changed

3 files changed

+0
-30
lines changed

example-umd/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ var Example = React.createClass({
1212
},
1313

1414
render: function () {
15-
var self = this;
16-
1715
return (
1816
React.createElement("div", null,
1917
React.createElement("p", {className: "msg"}, this.state.msg),

example/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ var Example = createReactClass({
1717
},
1818

1919
render: function () {
20-
var self = this;
21-
2220
return (
2321
<div>
2422
<p className='msg'>{this.state.msg}</p>

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)