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

Fix #5741: No Live Preview Error when launching Live Preview from an image #5808

Merged
merged 1 commit into from
Nov 4, 2013

Conversation

marcelgerber
Copy link
Contributor

This is for #5741.
@julieyuan

@ghost ghost assigned couzteau Nov 1, 2013
@@ -569,7 +569,7 @@ define(function LiveDevelopment(require, exports, module) {
// After (1) the interstitial page loads, (2) then browser navigation
// to the base URL is completed, and (3) the agents finish loading
// gather related documents and finally set status to STATUS_ACTIVE.
var doc = _getCurrentDocument(); // TODO: probably wrong...
var doc = _liveDocument.doc;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is the right thing to do. As indicated by the TODO in the old code attempting to get the current document will fail, that is return null if an image is displayed. However, liveDocument must always be set if live dev is up and running.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is set within this file, so that shouldn't be a problem.

couzteau added a commit that referenced this pull request Nov 4, 2013
Fix #5741: No Live Preview Error when launching Live Preview from an image
@couzteau couzteau merged commit 089d0e6 into adobe:master Nov 4, 2013
@marcelgerber marcelgerber deleted the live-dev-improvement branch November 5, 2013 13:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants