Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue: can.view(function, deferred, callback) does not work #1139
Please check this example: http://jsfiddle.net/a35ZH/1/
Basically, can.view() currently accepts renderer function as a first parameter. But in this case view does not enter defferreds logic work flow.
Here is a part of the view method from can/view.js, version 2.1.2:
As you can see, if renderer is a function, view renders it immediately and does not check for deferreds. Thus it's not possible to use pre-compiled templates with deferred data in such way.