Plato on Github
Report Home
dojo/on/debounce.js
Maintainability
93.43
Lines of code
19
Difficulty
3.67
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
define(['../debounce', '../on', './asyncEventListener'], function(debounce, on, asyncEventListener){ // summary: // This module provides an event debouncer for dojo/on // module: // dojo/on/debounce return function(selector, delay){ // summary: // event parser for custom events // selector: String // The selector to check against // delay: Interger // The amount of ms before testing the selector return function(node, listenerFnc){ return on(node, selector, asyncEventListener(debounce(listenerFnc, delay))); }; }; });