1var throttle = function(delay, callback) { 2 var previousCall = new Date().getTime(); 3 return function() { 4 var time = new Date().getTime(); 5 if ((time - previousCall) >= delay) { 6 previousCall = time; 7 callback.apply(null, arguments); 8 } 9 }; 10} 11 12window.galleries = window.galleries || {}; 13window.galleries.throttle = throttle; 14export default throttle;
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.