1var f = { 2 debounce: function (func, wait, immediate) { 3 var timeout; 4 return function() { 5 var context = this; 6 var later = function () { 7 timeout = null; 8 if (!immediate) { 9 func.apply(context, arguments) 10 }; 11 }; 12 var callNow = immediate && !timeout; 13 clearTimeout(timeout); 14 timeout = setTimeout(later, wait); 15 if (callNow) { 16 func.apply(context, arguments) 17 }; 18 }; 19 } 20};
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.