{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8227","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8227/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8227/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8227/events","html_url":"https://github.com/yiisoft/yii2/issues/8227","id":71905044,"number":8227,"title":"pjax in layout file clears view file's registered assets ","user":{"login":"nkovacs","id":2269242,"avatar_url":"https://avatars.githubusercontent.com/u/2269242?v=3","gravatar_id":"","url":"https://api.github.com/users/nkovacs","html_url":"https://github.com/nkovacs","followers_url":"https://api.github.com/users/nkovacs/followers","following_url":"https://api.github.com/users/nkovacs/following{/other_user}","gists_url":"https://api.github.com/users/nkovacs/gists{/gist_id}","starred_url":"https://api.github.com/users/nkovacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkovacs/subscriptions","organizations_url":"https://api.github.com/users/nkovacs/orgs","repos_url":"https://api.github.com/users/nkovacs/repos","events_url":"https://api.github.com/users/nkovacs/events{/privacy}","received_events_url":"https://api.github.com/users/nkovacs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-29T15:20:28Z","updated_at":"2015-04-29T15:20:28Z","closed_at":null,"body":"I have a pjax widget inside my layout file. The pjax widget calls `\\yii\\web\\View::clear()` in its init. Unfortunately this also clears the view's registered assets, link tags etc., since the view is rendered before the layout."}}