jquery-idletimer icon indicating copy to clipboard operation
jquery-idletimer copied to clipboard

Problem with initializing idleTimer with no arguments

Open angeltam opened this issue 11 years ago • 1 comments

When I start the timer and call getLastActiveTime function, getLastActiveTime returns false. $( document ).idleTimer(); var time = $( document ).idleTimer("getLastActiveTime");

Tracing through the code, it looks like firstParam is undefined. So line 250 skipped over because undefined === null is false, and ends up returning false at line 255.

My current workaround is to call idleTimer(null). In which case, lastActiveTime correctly returns the last active time. $( document ).idleTimer(null); var time = $( document ).idleTimer("getLastActiveTime");

angeltam avatar Jan 23 '15 00:01 angeltam

Hey Angel!! Fancy running into you here.

I just ran into this problem and your message helped thank you!!

jessicalc avatar Dec 09 '16 23:12 jessicalc