developmentseed/bones — pull request #67 by vkareh (2012-10-26 19:07:26+00:00)
Title: Return model on callback for client/server consistency.

When calling `Bones.util.callback()`, if the routing is done from the client, it returns a response object, rather than a `model`. If the routing is coming from the server, it returns a full `model`. This creates consistency problems when typing a URL versus using client-side routing/push-state.

By returning the `model` instead or the `response`, the callback will behave the same way for both routing scenarios.