js/comm/sessionwatcher/sessionwatcher.js in rsence-2.1.3 vs js/comm/sessionwatcher/sessionwatcher.js in rsence-2.1.4

- old
+ new

@@ -23,17 +23,18 @@ ***/ //var//RSence.COMM COMM.SessionWatcher = HApplication.extend({ constructor: function( _timeoutSecs, _sesTimeoutValueId ){ - // onIdle is called when HSystem's ticker count % 100 == 0 - // this means it's 5 seconds with HSystemTickerInterval 50 - this.base(10, 'SesWatcher'); - // gets the HValue represented by // sesTimeoutValueId (:client_time in server) this.sesTimeoutValue = COMM.Values.values[_sesTimeoutValueId]; this.timeoutSecs = _timeoutSecs; + + // onIdle is called when HSystem's ticker count % 100 == 0 + // this means it's 5 seconds with HSystemTickerInterval 50 + this.base(10, 'SesWatcher'); + }, // Tells the server the client's current time onIdle: function(){ if((new Date().getTime() - this.sesTimeoutValue.value) > this.timeoutSecs ){