Rename template instanciation function

This commit is contained in:
Sandro Santilli
2014-01-29 14:30:27 +01:00
parent 76acc5af99
commit d32278b227
+3 -3
View File
@@ -393,7 +393,7 @@ var CartodbWindshaft = function(serverOptions) {
});
// Instantiate a template
function instanciate(req, res, template_params, callback) {
function instanciateTemplate(req, res, template_params, callback) {
ws.doCORS(res);
var that = this;
var response = {};
@@ -505,7 +505,7 @@ var CartodbWindshaft = function(serverOptions) {
if ( ! req.headers['content-type'] || req.headers['content-type'].split(';')[0] != 'application/json') {
throw new Error('template POST data must be of type application/json, it is instead ');
}
instanciate(req, res, req.body, this);
instanciateTemplate(req, res, req.body, this);
}, function(err, response) {
finish_instanciation(err, response, res);
}
@@ -530,7 +530,7 @@ var CartodbWindshaft = function(serverOptions) {
throw new Error('badformed config parameter, should be a valid JSON');
}
}
instanciate(req, res, config, this);
instanciateTemplate(req, res, config, this);
}, function(err, response) {
finish_instanciation(err, response, res);
}