be able to set the the reference
This commit is contained in:
parent
2ae7743c7d
commit
393fc249b2
@ -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 = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user