Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Handle doc switch during Live Preview startup #7941

Merged
merged 1 commit into from
May 29, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/LiveDevelopment/LiveDevelopment.js
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,11 @@ define(function LiveDevelopment(require, exports, module) {
loadAgents().then(_openDeferred.resolve, _openDeferred.reject);

_getInitialDocFromCurrent().done(function (doc) {
if (doc && _liveDocument && doc === _liveDocument.doc) {
if (doc && _liveDocument) {
if (doc !== _liveDocument.doc) {
_createLiveDocumentForFrame(doc);
}

// Navigate from interstitial to the document
// Fires a frameNavigated event
if (_server) {
Expand Down