Sha256: 89abe6b198811dbbdecf3ad341e50251a70d1e8358022865866ef0c1ed212115
Contents?: true
Size: 452 Bytes
Versions: 33
Compression:
Stored size: 452 Bytes
Contents
const APP_NAME = '<%= Rails.application.class.parent_name %>'; function debounce(func, wait, immediate) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if (!immediate) func.apply(context, args); }; var callNow = immediate && !timeout; clearTimeout(timeout); timeout = setTimeout(later, wait); if (callNow) func.apply(context, args); }; };
Version data entries
33 entries across 33 versions & 1 rubygems