aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js
diff options
context:
space:
mode:
authorEric Guzman2012-05-07 10:38:29 -0700
committerEric Guzman2012-05-07 10:38:29 -0700
commita62f57cf6beee332ff60a48f5e26d0084b4a5432 (patch)
tree2bf58813db8634a7c88f9db617dc5db47cb634d2 /js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js
parent8b9024faa65566a18e4548f198b43f18390e6bc5 (diff)
downloadninja-a62f57cf6beee332ff60a48f5e26d0084b4a5432.tar.gz
Style sheets - Add sheet action
Diffstat (limited to 'js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js')
-rw-r--r--js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js
index 26b996ec..2d6e18ed 100644
--- a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js
+++ b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js
@@ -35,7 +35,7 @@ exports.StyleSheetsView = Montage.create(Component, {
35 ///// Add rule button action 35 ///// Add rule button action
36 handleAddAction : { 36 handleAddAction : {
37 value: function(e) { 37 value: function(e) {
38 debugger; 38 this.stylesController.createStylesheet();
39 } 39 }
40 }, 40 },
41 41
@@ -45,6 +45,7 @@ exports.StyleSheetsView = Montage.create(Component, {
45 handleStyleSheetsReady : { 45 handleStyleSheetsReady : {
46 value: function(e) { 46 value: function(e) {
47 this.documentName = this.stylesController.activeDocument.name; 47 this.documentName = this.stylesController.activeDocument.name;
48 this.styleSheets = this.stylesController.userStyleSheets;
48 this._initView = this.needsDraw = true; 49 this._initView = this.needsDraw = true;
49 } 50 }
50 }, 51 },
@@ -60,7 +61,6 @@ exports.StyleSheetsView = Montage.create(Component, {
60 prepareForDraw : { 61 prepareForDraw : {
61 value: function() { 62 value: function() {
62 this.eventManager.addEventListener("styleSheetsReady", this, false); 63 this.eventManager.addEventListener("styleSheetsReady", this, false);
63 this.eventManager.addEventListener("newStyleSheet", this, false);
64 } 64 }
65 }, 65 },
66 draw : { 66 draw : {
@@ -68,7 +68,6 @@ exports.StyleSheetsView = Montage.create(Component, {
68 if(this._initView) { 68 if(this._initView) {
69 this.noDocumentCondition = false; 69 this.noDocumentCondition = false;
70 this.showToolbar = true; 70 this.showToolbar = true;
71 this.styleSheets = this.stylesController.userStyleSheets;
72 this._initView = false; 71 this._initView = false;
73 } 72 }
74 73
@@ -110,11 +109,6 @@ exports.StyleSheetsView = Montage.create(Component, {
110 } 109 }
111 } 110 }
112 }, 111 },
113 handleNewStyleSheet : {
114 value: function(e) {
115 this.styleSheets.push(e._event.detail);
116 }
117 },
118 handleResizeStart: { 112 handleResizeStart: {
119 value:function(e) { 113 value:function(e) {
120 this.isResizing = true; 114 this.isResizing = true;