mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 13:10:09 +02:00
initial commit
This commit is contained in:
14
app/node_modules/throttleit/example.js
generated
vendored
Normal file
14
app/node_modules/throttleit/example.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
var throttle = require('./');
|
||||
|
||||
function onprogress(n) {
|
||||
console.log('progress %s%', n);
|
||||
}
|
||||
|
||||
onprogress = throttle(onprogress, 500);
|
||||
|
||||
var n = 0;
|
||||
setInterval(function(){
|
||||
if (n >= 100) return;
|
||||
onprogress(n++);
|
||||
}, 50);
|
Reference in New Issue
Block a user