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

Update live preview icon for any document that does not have .css extens... #1819

Merged
merged 2 commits into from
Oct 12, 2012

Conversation

RaymondLim
Copy link
Contributor

...ion.

Also update it only if live preview is on.

This fixes issues #1814 and #1815

…ension.

Also update it only if live preview is on.
@ghost ghost assigned gruehle Oct 12, 2012
@gruehle
Copy link
Member

gruehle commented Oct 12, 2012

Reviewing

@@ -331,7 +322,8 @@ define(function LiveDevelopment(require, exports, module) {
status = STATUS_ACTIVE;

_openDocument(doc, editor);
if (doc.isDirty && _isHTMLDocument(doc)) {
var DocClass = _classForDocument(doc);
Copy link
Member

Choose a reason for hiding this comment

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

Naming nit: DocClass should start with a lower-case "D" - docClass. This is true for the other two instances below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! I was not thinking carefully when I copied it from an existing one.

@gruehle
Copy link
Member

gruehle commented Oct 12, 2012

Initial review complete.

@RaymondLim
Copy link
Contributor Author

Done with your suggested changes.

@gruehle
Copy link
Member

gruehle commented Oct 12, 2012

Looks good! Merging.

gruehle added a commit that referenced this pull request Oct 12, 2012
Update live preview icon for any document that does not have .css extens...
@gruehle gruehle merged commit ec7a30c into master Oct 12, 2012
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