mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
dont make local variables global
This commit is contained in:
parent
1932d240e5
commit
5d15f655f0
11 changed files with 14 additions and 14 deletions
|
@ -41,7 +41,7 @@ exports.syncMapFirst = function (lst, fn) {
|
|||
exports.mapFirst = function (lst, fn, cb) {
|
||||
var i = 0;
|
||||
|
||||
next = function () {
|
||||
var next = function () {
|
||||
if (i >= lst.length) return cb(undefined);
|
||||
fn(lst[i++], function (err, result) {
|
||||
if (err) return cb(err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue