Update initialize to not use parallel().

This commit is contained in:
Young Hahn 2011-05-24 22:19:52 -04:00
parent fe8c5d2ec7
commit a4f2d4af00

View File

@ -109,7 +109,10 @@ carto.Renderer = function Renderer(env) {
});
// Continue even if we don't have any layers.
group()();
}, callback);
},
function(err) {
callback(err, m);
});
},
// Download any remote stylesheets
@ -135,7 +138,10 @@ carto.Renderer = function Renderer(env) {
});
});
group()();
}, callback);
},
function(err) {
callback(err, m);
});
},
// Compile (already downloaded) styles with carto,
@ -438,10 +444,13 @@ carto.Renderer = function Renderer(env) {
Step(function() {
localizingTime = +new Date();
that.localizeExternals(m, this.parallel());
that.localizeStyle(m, this.parallel());
that.localizeExternals(m, this);
},
function(err) {
function(err, m) {
if (err) throw err;
that.localizeStyle(m, this);
},
function(err, m) {
if (err) throw err;
that.ensureSRS(m, this);
},