yui/yui3 — pull request #1264 by offtopicguy (2013-10-03 01:01:29+00:00)
Title: When html is rendered server-side and App.showContent is called, do not ...

...replace html with itself in _uiSetActiveView().

We are having an issue with ads being removed from the DOM when HTML is rendered server-side on this page:

http://sports.yahoo.com/fantasy/premier-league/home

What's happening is:
1. Server returns all html required to display page
2. showContent is fired and in turn view.bind() is fired
3. DARLA replaces ad node with actual ad markup
4. after('activeViewChange') fires _uiSetActiveView()
5. _uiSetActiveView replaces HTML (including ad) with original markup from node referenced in original showContent call

showContent passes it's options to render=false flag to the activeViewChange event handler but never uses it. Also, another possible fix might be to check if 'oldView' is null, then don't replace nodes but I am not sure under what other scenarios that might be true.

-Dave S