Sha256: fb5fecee0760cf635bf6dbf3d9229dc87b35c7b7d0eba9a35c8b39aff958091b
Contents?: true
Size: 534 Bytes
Versions: 7
Compression:
Stored size: 534 Bytes
Contents
(function(scope) { 'use strict'; scope.Utils = scope.Utils || {}; scope.Utils.debounce = 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); }; }; }(window.ActiveAdmin));
Version data entries
7 entries across 7 versions & 1 rubygems