Reference options from a valid object

This commit is contained in:
Raul Ochoa 2017-01-31 11:31:11 +01:00
parent 11ffba0a8e
commit 7e02aac641

View File

@ -279,7 +279,7 @@ CartoCSS.prototype = {
carto.RendererJS = function (options) {
this.options = options || {};
var reference = options.reference || require('./torque-reference').version.latest;
var reference = this.options.reference || require('./torque-reference').version.latest;
tree.Reference.setData(reference);
this.options.mapnik_version = this.options.mapnik_version || 'latest';
};