jupiterjs/canjs — pull request #63 by rjgotten (2012-06-29 11:24:38+00:00)
Title: Fixing result of a deferred can.view to always be a properly populated document fragment

When model data is *not* a `can.Deferred` and a callback is used to force asynchronous execution path, `can.view.render` was not returning the rendered HTML string as the result of the deferred object, but was wrongfully returning the renderer function instead.

This was causing problems with `can.view` calling `can.view.frag` with the deferred object's result and always generating an empty document fragment because of an internal failover.