comma being added to result on series
- Dominant language
- JavaScript
- Stars
- 327
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
```
self.requireTemplate = function(name, callbackn){
_.series([
function(callback){
self.waiton(false);
callback();
},
function (callback) {
setTimeout(function () {
$.get('templates/'+name+'.htm', function(data){
self.waitoff();
callback(null, data);
}).error(function(e) { alert('Error: templates/'+name+'.htm not found'); });
}, 50);
}],
function(err, results){
// getting an extra comma
if(jQuery.isFunction(callbackn)==true){
callbackn(results);
return;
}
});
};
```
The callbackn(results) always has a "," prepended to the results.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.