shawnmclean / Idle.js

Javascript activity library for the browser. (away, idle, etc)
Other
402 stars 59 forks source link

Still calling the function startAwayTimeout #10

Closed mnico closed 9 years ago

mnico commented 10 years ago

Hi there, this library is nice. I tried to use it and i detected a problem. On Idle.prototype.onActive is still calling the function startAwayTimeout.

Thanks

shawnmclean commented 10 years ago

Hi @mnico what browser and what version of the project are you using?

mnico commented 10 years ago

I tried it in Chrome using the master branch. Here is the line https://github.com/shawnmclean/Idle.js/blob/master/build/idle.js#L61

scho commented 10 years ago

Same here. Isn't it supposed to call start() instead?

jingzhaoou commented 10 years ago

Went into the same issue. After checking the code, look like that we need to change startAwayTimeout() to start() on line 61 of build/idle.js.