Sha256: 54104d9f3a9bee5d25732090996481bcf7003c80e2e69e5a1210d442a3d41d0c
Contents?: true
Size: 524 Bytes
Versions: 11
Compression:
Stored size: 524 Bytes
Contents
const APP_NAME = "<%= Rails.application.class.parent_name %>"; const process = { env: { NODE_ENV: "<%= Rails.env %>" } }; 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
11 entries across 11 versions & 1 rubygems