aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorEric Guzman2012-02-22 23:18:12 -0800
committerEric Guzman2012-02-22 23:18:12 -0800
commita5ee11857f923d3e49b44c0a8c480e9d0b026d5b (patch)
tree55bb6d0dc2ee710290ac5af0bb46ec66a6b2e381 /js/controllers
parent1c528b42f9b1c9be9197921586388c3a3bdc5c17 (diff)
downloadninja-a5ee11857f923d3e49b44c0a8c480e9d0b026d5b.tar.gz
CSS Panel Update
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/styles-controller.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js
index 44ca50e1..aa5a4e7f 100755
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -94,11 +94,18 @@ var stylesController = exports.StylesController = Montage.create(Component, {
94 // Returns null if sheet not found (as in non-ninja projects) 94 // Returns null if sheet not found (as in non-ninja projects)
95 // Setter will handle null case 95 // Setter will handle null case
96 this.defaultStylesheet = this.getSheetFromElement(this.CONST.DEFAULT_SHEET_ID); 96 this.defaultStylesheet = this.getSheetFromElement(this.CONST.DEFAULT_SHEET_ID);
97 97
98 //debugger; 98 this.userStyleSheets = nj.toArray(document._document.styleSheets).filter(function(sheet) {
99 return sheet !== this._stageStylesheet;
100 }, this);
101
102 NJevent('styleSheetsReady', this);
99 }, 103 },
100 enumerable : false 104 enumerable : false
101 }, 105 },
106 userStyleSheets : {
107 value : null
108 },
102 _stageStylesheet : { 109 _stageStylesheet : {
103 value : null 110 value : null
104 }, 111 },