be able to set the the reference

This commit is contained in:
javi 2013-07-31 12:33:39 +02:00
parent 2ae7743c7d
commit 393fc249b2

View File

@ -8,14 +8,19 @@
var _ = require('underscore'); var _ = require('underscore');
var mapnik_reference = require('mapnik-reference'); var reference = require('mapnik-reference');
tree.Reference = { tree.Reference = {
data: mapnik_reference.version.latest data: reference.version.latest
};
tree.Reference.set = function(ref, version) {
reference = ref;
tree.Reference.setVersion(version || 'latest');
}; };
tree.Reference.setVersion = function(version) { tree.Reference.setVersion = function(version) {
tree.Reference.data = mapnik_reference.version[version]; tree.Reference.data = reference.version[version];
}; };
tree.Reference.required_prop_list_cache = {}; tree.Reference.required_prop_list_cache = {};