react-idle-timer
Advanced tools
Comparing version
@@ -56,6 +56,5 @@ 'use strict'; | ||
remaining: null, | ||
tId: null, | ||
pageX: null, | ||
pageY: null | ||
}, _this._toggleIdleState = function () { | ||
}, _this.tId = null, _this._toggleIdleState = function () { | ||
// Set the state | ||
@@ -85,3 +84,3 @@ _this.setState({ | ||
// clear any existing timeout | ||
clearTimeout(_this.state.tId | ||
clearTimeout(_this.tId | ||
@@ -99,3 +98,3 @@ // if the idle timer is enabled, flip | ||
// reset timers | ||
clearTimeout(_this.state.tId); | ||
clearTimeout(_this.tId); | ||
@@ -115,3 +114,3 @@ // reset settings | ||
// clear any existing timeout | ||
clearTimeout(_this.state.tId | ||
clearTimeout(_this.tId | ||
@@ -176,3 +175,3 @@ // define how much is left on the timer | ||
// Clear timeout to prevent delayed state changes | ||
clearTimeout(this.state.tId); | ||
clearTimeout(this.tId); | ||
// Unbind all events | ||
@@ -179,0 +178,0 @@ this.props.events.forEach(function (e) { |
{ | ||
"name": "react-idle-timer", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Activity detection for React.js", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
28032
-0.08%442
-0.23%