Fix bad var.

This commit is contained in:
Young Hahn
2011-05-12 16:07:24 -04:00
parent 2e19f81e6c
commit f92d754816

View File

@@ -233,7 +233,7 @@ MBTiles.prototype.grid = function(x, y, z, callback) {
if (!row || !row.grid) return callback('Grid does not exist');
var grid = zlib.inflate(
!Buffer.isBuffer(row.grid)
? new Buffer(grid, 'binary')
? new Buffer(row.grid, 'binary')
: row.grid
).toString();
var data = rows.reduce(function(memo, r) {