()
| 3 | return function() { |
| 4 | var context = this, args = arguments; |
| 5 | var later = function() { |
| 6 | timeout = null; |
| 7 | if (!immediate) func.apply(context, args); |
| 8 | }; |
| 9 | var callNow = immediate && !timeout; |
| 10 | clearTimeout(timeout); |
| 11 | timeout = setTimeout(later,wait); |
nothing calls this directly
no outgoing calls
no test coverage detected