Skip to content

Commit

Permalink
also return the tilehost in the map object
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Jun 2, 2011
1 parent f1a738b commit 2b0ebeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/Tileset.server.bones
Expand Up @@ -8,7 +8,9 @@ models.Tileset.register = function(server) {
switch (method) {
case 'read':
tileset.load(model.filepath(config.tiles), function(err, data) {
return err ? error(err) : success(data);
if (err) return error(err);
data.host = model.options.tileHost;
success(data);
});
break;
}
Expand Down

0 comments on commit 2b0ebeb

Please sign in to comment.