reverts changes for loading mapnik-reference when is actually needed

This commit is contained in:
javi 2014-12-05 08:27:50 +01:00
parent 146976c8a3
commit c14756e1a0

View File

@ -5,6 +5,7 @@
(function(tree) {
var _ = require('underscore'),
mapnik_reference = require('mapnik-reference'),
ref = {};
ref.setData = function(data) {
@ -23,7 +24,6 @@ ref.setData = function(data) {
};
ref.setVersion = function(version) {
var mapnik_reference = require('mapnik-reference');
if (mapnik_reference.version.hasOwnProperty(version)) {
ref.setData(mapnik_reference.version[version]);
return true;