projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
25159c2cdd946f080c4395806573185c6cb8d2cd
[platform/framework/web/crosswalk-tizen.git]
/
1
2
3
/**
4
* Returns a function that will execute a list of functions in sequence
5
* passing the same arguments to each one. (useful for batch processing
6
* items during a forEach loop)
7
*/
8
function series(){
9
var fns = arguments;
10
return function(){
11
var i = 0,
12
n = fns.length;
13
while (i < n) {
14
fns[i].apply(this, arguments);
15
i += 1;
16
}
17
};
18
}
19
20
module.exports = series;
21
22