aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorEric Guzman2012-05-16 16:04:00 -0700
committerEric Guzman2012-05-16 16:04:00 -0700
commitb5439f436cac405c4bbf7e01ead9cee5dbc71a73 (patch)
treed4d6b96738ed13347d01a1c0a3ef00a718bdeaf0 /js/controllers
parent62a47c22cf5fb76289a50be8e73de1ae8c55c78f (diff)
downloadninja-b5439f436cac405c4bbf7e01ead9cee5dbc71a73.tar.gz
CSS Panel - Style sheets dirty flag added
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/styles-controller.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js
index 60b2ca92..22f29bd8 100755
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -1315,6 +1315,9 @@ var stylesController = exports.StylesController = Montage.create(Component, {
1315 return sheetObj.stylesheet === sheet; 1315 return sheetObj.stylesheet === sheet;
1316 }); 1316 });
1317 1317
1318 ///// Dispatch modified event
1319 NJevent('styleSheetModified', eventData);
1320
1318 ///// If the sheet doesn't already exist in the list of modified 1321 ///// If the sheet doesn't already exist in the list of modified
1319 ///// sheets, dispatch dirty event and add the sheet to the list 1322 ///// sheets, dispatch dirty event and add the sheet to the list
1320 if(sheetSearch.length === 0) { 1323 if(sheetSearch.length === 0) {
@@ -1348,6 +1351,8 @@ var stylesController = exports.StylesController = Montage.create(Component, {
1348 this.dirtyStyleSheets = this.dirtyStyleSheets.filter(function(sheet) { 1351 this.dirtyStyleSheets = this.dirtyStyleSheets.filter(function(sheet) {
1349 return sheet.document !== doc; 1352 return sheet.document !== doc;
1350 }); 1353 });
1354 } else {
1355 this.dirtyStyleSheets = [];
1351 } 1356 }
1352 1357
1353 1358