Remove grid JSON stringify workarounds.

This commit is contained in:
Young Hahn
2011-05-11 10:23:22 -04:00
parent aed3fb1d8a
commit 2e19f81e6c
2 changed files with 1 additions and 4 deletions

View File

@@ -28,15 +28,12 @@ module.exports = {
var layer = {};
f && (layer.formatter = f);
l && (layer.legend = l);
options.jsonp && (layer = options.jsonp + '(' + JSON.stringify(layer) + ');');
callback(null, [layer, { 'Content-Type': 'text/javascript' }]);
}
);
break;
case 'grid.json':
resource.grid(options.x, options.y, options.z, function(err, grid) {
grid = JSON.stringify(grid);
options.jsonp && (grid = options.jsonp + '(' + grid + ');');
callback(err, [grid, { 'Content-Type': 'text/javascript' }]);
});
break;