Fix mistake in previous commit

This commit is contained in:
Toby Zerner 2016-01-19 19:07:06 +10:30
parent 3cec7e8b46
commit db06b8c71a
2 changed files with 2 additions and 0 deletions

View File

@ -1051,6 +1051,7 @@ var m = (function app(window, undefined) {
function checkView(data, view, cached, cachedControllers, controllers, views) {
var controller = getController(cached.views, view, cachedControllers, data.controller);
var key = (data && data.attrs && data.attrs.key);
data = pendingRequests === 0 || forcing || cachedControllers && cachedControllers.indexOf(controller) > -1 ? data.view(controller) : {tag: "placeholder"};
if (data.subtree === "retain") return data;
(data.attrs = data.attrs || {}).key = key;

View File

@ -1051,6 +1051,7 @@ var m = (function app(window, undefined) {
function checkView(data, view, cached, cachedControllers, controllers, views) {
var controller = getController(cached.views, view, cachedControllers, data.controller);
var key = (data && data.attrs && data.attrs.key);
data = pendingRequests === 0 || forcing || cachedControllers && cachedControllers.indexOf(controller) > -1 ? data.view(controller) : {tag: "placeholder"};
if (data.subtree === "retain") return data;
(data.attrs = data.attrs || {}).key = key;