From ae7404b7f7418f74acdf51c47cefd1482faab78e Mon Sep 17 00:00:00 2001 From: Glenn Ruehle Date: Wed, 4 Apr 2012 16:38:54 -0700 Subject: [PATCH] Make sure in-memory changes to CSS docs are pushed when starting live development connection. --- src/LiveDevelopment/Documents/CSSDocument.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/LiveDevelopment/Documents/CSSDocument.js b/src/LiveDevelopment/Documents/CSSDocument.js index 725d11dcefc..3c7ce7d6406 100644 --- a/src/LiveDevelopment/Documents/CSSDocument.js +++ b/src/LiveDevelopment/Documents/CSSDocument.js @@ -62,6 +62,11 @@ define(function CSSDocumentModule(require, exports, module) { // res = {styleSheet} this.rules = res.styleSheet.rules; }.bind(this)); + + // If the CSS document is dirty, push the changes into the browser now + if (doc.isDirty) { + CSSAgent.reloadDocument(this.doc); + } }; /** Close the document */