Sha256: d318542094f0f83028e7c150f7be97cec89325cb60f46c2f3d26d8128ed04a31
Contents?: true
Size: 422 Bytes
Versions: 12
Compression:
Stored size: 422 Bytes
Contents
Lanes.lib.debounce = { debounce: (fn, options={})-> options.scope ||= this options.delay ||= 250 _.debounce( -> fn.apply(options.scope, (options.arguments||[]).concat(arguments...)) , options.delay ) debounceMethod: (method,options)-> original = this[method] this[method] = @debounce( -> original.apply(this, arguments) ,options) }
Version data entries
12 entries across 12 versions & 1 rubygems