Permalink
Browse files

Fixed small bug where pressing a key and not moving the mouse causes …

…the user never to register as idle again. Thanks to Paul Irish for the bug report and fix.
  • Loading branch information...
1 parent 5e00571 commit 52badaa52e08171cece2e7b8367bf891d9eaace3 nzakas committed Jun 10, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 idle-timer/idle-timer.js
View
@@ -55,10 +55,10 @@ YUI.add("idle-timer", function(Y){
//if it's idle, that means the user is no longer idle
if (idle){
toggleIdleState();
- } else {
- //set a new timeout
- tId = setTimeout(toggleIdleState, timeout);
- }
+ }
+
+ //set a new timeout
+ tId = setTimeout(toggleIdleState, timeout);
}
}

0 comments on commit 52badaa

Please sign in to comment.