From 9358b8b58f4f25080a5f3cca78b768021bcca2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 25 Jan 2011 14:40:39 -0500 Subject: [PATCH] add names to functions to be more descriptive --- lib/mess/renderer.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/mess/renderer.js b/lib/mess/renderer.js index 1c30b99..24c3fbe 100644 --- a/lib/mess/renderer.js +++ b/lib/mess/renderer.js @@ -37,7 +37,7 @@ mess.Renderer = function Renderer(env) { */ ensureSRS: function(m, callback) { Step( - function() { + function autodetectSRS() { var group = this.group(); var autodetect = _.filter(m.Layer, function(l) { return !l.srs; }); _.each(autodetect, function(l) { @@ -72,7 +72,7 @@ mess.Renderer = function Renderer(env) { // If no layers missing SRS information, next. autodetect.length === 0 && group()(); }, - function(err) { + function waitForDetection(err) { m.Layer = _.filter(m.Layer, function(l) { return l.srs; }); callback(err, m); } @@ -91,7 +91,7 @@ mess.Renderer = function Renderer(env) { localizeExternals: function(m, callback) { var that = this; Step( - function() { + function downloadExternals() { var group = this.group(); m.Layer.forEach(function(l) { if (l.Datasource.file) { @@ -108,7 +108,7 @@ mess.Renderer = function Renderer(env) { // Continue even if we don't have any layers. group()(); }, - function(err) { + function waitForDownloads(err) { callback(err, m); } ); @@ -123,7 +123,7 @@ mess.Renderer = function Renderer(env) { localizeStyle: function(m, callback) { var that = this; Step( - function() { + function downloadStyles() { var group = this.group(); m.Stylesheet.forEach(function(s, k) { if (!s.id) { @@ -137,7 +137,7 @@ mess.Renderer = function Renderer(env) { }); group()(); }, - function(err, results) { + function waitForDownloads(err, results) { callback(err, m); } ); @@ -156,7 +156,7 @@ mess.Renderer = function Renderer(env) { style: function(m, callback) { var that = this; Step( - function() { + function loadStyles() { var group = this.group(); m.Stylesheet.forEach(function(s) { if (s.id) { @@ -168,7 +168,7 @@ mess.Renderer = function Renderer(env) { } }); }, - function(e, results) { + function compileStyles(e, results) { var options = {}, group = this.group(); for (var i = 0, l = results.length; i < l; i++) { @@ -193,7 +193,7 @@ mess.Renderer = function Renderer(env) { }); } }, - function(err, res) { + function waitForCompilation(err, res) { callback(err, m, res); } );