1var Timeout = (function() { 2 var timeoutHandle = null; 3 var timeoutCallback = null; 4 var timeoutInMs; 5 6 var timeoutObject = { 7 initialize: function(timeoutInMinutes, onTimeout) { 8 timeoutInMs = timeoutInMinutes * 60 * 1000; 9 timeoutCallback = onTimeout; 10 11 timeoutObject.resetTimeout(); 12 13 // on every ajax-call, reset the timeout. 14 $(document).ajaxSend(function() { 15 timeoutObject.resetTimeout(); 16 }); 17 }, 18 19 resetTimeout: function() { 20 if(timeoutHandle !== null) { 21 clearTimeout(timeoutHandle); 22 } 23 24 if(timeoutCallback !== null) { 25 timeoutHandle = setTimeout(timeoutCallback, timeoutInMs); 26 } 27 } 28 }; 29 30 return timeoutObject; 31})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.