Permalink
Browse files

Unearthed bug: $(elem).bind('click.foo mousewheel.foo ',fn) ==> recur…

…sive loop in event.remove (Extra space, eek!)
  • Loading branch information...
unknown
unknown committed Jun 5, 2009
1 parent 44c486f commit 9af9a3b54c0baebab8c10bc02fd49f8929dd85ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 idle-timer/idle-timer.js
View
@@ -143,7 +143,7 @@ $.idleTimer = function(newTimeout){
}
//assign appropriate event handlers
- $(document).bind((events+' ').split(' ').join('.idleTimer '),handleUserEvent);
+ $(document).bind($.trim((events+' ').split(' ').join('.idleTimer ')),handleUserEvent);
//set a timeout to toggle state

0 comments on commit 9af9a3b

Please sign in to comment.