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

Commit

Permalink
Merge pull request #10522 from sebaslv/fix-for-10516
Browse files Browse the repository at this point in the history
Attach editor to LiveCSSDocument
  • Loading branch information
Marcel Gerber committed Aug 18, 2016
2 parents b1a24ba + 56d139b commit 5141df2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/LiveDevelopment/LiveDevMultiBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ define(function (require, exports, module) {
docPromise.done(function (doc) {
if ((_classForDocument(doc) === LiveCSSDocument) &&
(!_liveDocument || (doc !== _liveDocument.doc))) {
var liveDoc = _createLiveDocument(doc, null, roots);
var liveDoc = _createLiveDocument(doc, doc._masterEditor, roots);
if (liveDoc) {
_server.add(liveDoc);
_relatedDocuments[doc.url] = liveDoc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ define(function LiveCSSDocumentModule(require, exports, module) {

this.doc.on("change.LiveCSSDocument", this.onChange);
this.doc.on("deleted.LiveCSSDocument", this.onDeleted);
if (editor) {
this._attachToEditor(editor);
}
};

LiveCSSDocument.prototype = Object.create(LiveDocument.prototype);
Expand Down

0 comments on commit 5141df2

Please sign in to comment.