Last active
August 29, 2015 14:13
-
-
Save grippado/27d41b29bcec2d80c455 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var debcomp = (function () { | |
'use strict'; | |
var timeWin = 500; | |
var tout; | |
var debcomp = function (arg1, arg2) { | |
// insira aqui a logica | |
}; | |
return function() { | |
var context = this; | |
var args = arguments; | |
clearTimeout(tout); | |
tout = setTimeout(function(){ | |
debcomp.apply(context, args); | |
}, timeWin); | |
}; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment