mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 04:31:57 +08:00
Fix mistake in previous commit
This commit is contained in:
parent
3cec7e8b46
commit
db06b8c71a
1
js/admin/dist/app.js
vendored
1
js/admin/dist/app.js
vendored
@ -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;
|
||||
|
1
js/forum/dist/app.js
vendored
1
js/forum/dist/app.js
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user