File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 180
180
timeout . setMouseTimeout ( window . setTimeout ( function ( )
181
181
{
182
182
//on mouse move
183
- $ ( 'body' ) . on ( 'mousemove' , function ( )
183
+ $ ( 'body' ) . on ( 'mousemove.jTimeout ' , function ( )
184
184
{
185
185
if ( ! timeout . mouseMoved && timeout . resetOnAlert ( ) )
186
186
{
245
245
timeout . stopPriorCountdown ( ) ;
246
246
timeout . hideCountdownAlert ( ) ;
247
247
}
248
+ } ,
249
+ /* When you are all done, destroy all the timers -- or just let the user navigate away from the page. */
250
+ destructor : function ( ) {
251
+ timeout . stopFlashing ( ) ;
252
+ timeout . stopActivityMonitoring ( ) ;
253
+ delete timeout . options . onSessionExtended ;
254
+ delete timeout . countdown ;
255
+
256
+ // Remove the event handlers
257
+ $ ( 'body' ) . off ( 'mousemove.jTimeout' ) ;
248
258
}
249
259
} ;
250
260
You can’t perform that action at this time.
0 commit comments