diff options
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/styles-controller.js | 5 |
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 | ||