Add toString method.

This commit is contained in:
Will White
2011-08-25 23:29:01 -04:00
parent 75b04d87dc
commit 804aabae74

View File

@@ -66,6 +66,10 @@ function MBTiles(uri, callback) {
return undefined;
}
MBTiles.prototype.toString = function() {
return '[MBTiles ' + this.filename + ']';
}
MBTiles.prototype._open = function(uri) {
var mbtiles = this;
function error(err) {