aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorEric Guzman2012-07-17 18:40:24 -0700
committerEric Guzman2012-07-17 18:40:24 -0700
commitbc7ffffb2bac3bf09d17d855d32a5f0d154fab3b (patch)
treeb660f1e6e918d98d1060953b5162a587f0fc394f /js/controllers
parent4f737b24c19ddc02d20f9783b8b080fc6ef11142 (diff)
downloadninja-bc7ffffb2bac3bf09d17d855d32a5f0d154fab3b.tar.gz
Styles Controller - Re-add dirty event. Add data- attribute to keep created stylesheets.
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/styles-controller.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js
index 89a389a4..8639bed1 100755
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -1405,7 +1405,8 @@ var stylesController = exports.StylesController = Montage.create(Component, {
1405 rel : 'stylesheet', 1405 rel : 'stylesheet',
1406 id : id || "", 1406 id : id || "",
1407 media : 'screen', 1407 media : 'screen',
1408 title : 'Temp' 1408 title : 'Temp',
1409 'data-ninja-node' : 'true'
1409 }); 1410 });
1410 1411
1411 doc.head.appendChild(sheetElement); 1412 doc.head.appendChild(sheetElement);
@@ -1486,6 +1487,7 @@ var stylesController = exports.StylesController = Montage.create(Component, {
1486 ///// If the sheet doesn't already exist in the list of modified 1487 ///// If the sheet doesn't already exist in the list of modified
1487 ///// sheets, dispatch dirty event and add the sheet to the list 1488 ///// sheets, dispatch dirty event and add the sheet to the list
1488 if(sheetSearch.length === 0) { 1489 if(sheetSearch.length === 0) {
1490 NJevent('styleSheetDirty', eventData);
1489 this.dirtyStyleSheets.push({ 1491 this.dirtyStyleSheets.push({
1490 document : sheet.ownerNode.ownerDocument, 1492 document : sheet.ownerNode.ownerDocument,
1491 stylesheet : sheet 1493 stylesheet : sheet