aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js2
-rw-r--r--js/panels/css-panel/style-sheet.reel/style-sheet.js2
-rw-r--r--js/panels/css-panel/styles-view-container.reel/styles-view-container.js22
3 files changed, 2 insertions, 24 deletions
diff --git a/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js b/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js
index 71fe8470..cfe3c24d 100644
--- a/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js
+++ b/js/panels/css-panel/rule-components/css-style-rule.reel/css-style-rule.js
@@ -55,7 +55,7 @@ exports.CssStyleRule = Montage.create(Component, {
55 this.selector = rule.selectorText; 55 this.selector = rule.selectorText;
56 this.declaration = rule.style; 56 this.declaration = rule.style;
57 57
58 console.log('Rule with selector "' +rule.selectorText+ '" is set on componenet.'); 58 //console.log('Rule with selector "' +rule.selectorText+ '" is set on componenet.');
59 59
60 this._rule = rule; 60 this._rule = rule;
61 } 61 }
diff --git a/js/panels/css-panel/style-sheet.reel/style-sheet.js b/js/panels/css-panel/style-sheet.reel/style-sheet.js
index 98e20b2c..cb69d25b 100644
--- a/js/panels/css-panel/style-sheet.reel/style-sheet.js
+++ b/js/panels/css-panel/style-sheet.reel/style-sheet.js
@@ -206,8 +206,6 @@ exports.StyleSheet = Montage.create(Component, {
206 set: function(sheet) { 206 set: function(sheet) {
207 if(!sheet || sheet === this._source) { return; } 207 if(!sheet || sheet === this._source) { return; }
208 208
209 console.log('sheet being set: ', this);
210
211 this._extractData(sheet.ownerNode); 209 this._extractData(sheet.ownerNode);
212 this._source = sheet; 210 this._source = sheet;
213 } 211 }
diff --git a/js/panels/css-panel/styles-view-container.reel/styles-view-container.js b/js/panels/css-panel/styles-view-container.reel/styles-view-container.js
index 7560ce6f..4a391421 100644
--- a/js/panels/css-panel/styles-view-container.reel/styles-view-container.js
+++ b/js/panels/css-panel/styles-view-container.reel/styles-view-container.js
@@ -37,7 +37,6 @@ exports.StylesViewContainer = Montage.create(Component, {
37 return this._prevSelection; 37 return this._prevSelection;
38 }, 38 },
39 set: function(value) { 39 set: function(value) {
40 console.log("setting last selection to " + value);
41 this._prevSelection = value; 40 this._prevSelection = value;
42 } 41 }
43 }, 42 },
@@ -74,7 +73,6 @@ exports.StylesViewContainer = Montage.create(Component, {
74 templateDidLoad : { 73 templateDidLoad : {
75 value: function() { 74 value: function() {
76 this.eventManager.addEventListener('styleSheetsReady', this, false); 75 this.eventManager.addEventListener('styleSheetsReady', this, false);
77 //this.eventManager.addEventListener('elementChanging', this, false);
78 this.eventManager.addEventListener('elementChange', this, false); 76 this.eventManager.addEventListener('elementChange', this, false);
79 this.eventManager.addEventListener("closeDocument", this, false); 77 this.eventManager.addEventListener("closeDocument", this, false);
80 } 78 }
@@ -94,8 +92,8 @@ exports.StylesViewContainer = Montage.create(Component, {
94 var elements = this.application.ninja.selectedElements, 92 var elements = this.application.ninja.selectedElements,
95 elementsCopy = this._copy(elements); 93 elementsCopy = this._copy(elements);
96 94
95 ///// Is selection identical? If so, do nothing.
97 if(this._isSameArray(elements, this.prevSelection) && this.contentPanel === "rules") { 96 if(this._isSameArray(elements, this.prevSelection) && this.contentPanel === "rules") {
98 console.log('new selection is identical');
99 return false; 97 return false;
100 } 98 }
101 99
@@ -152,24 +150,6 @@ exports.StylesViewContainer = Montage.create(Component, {
152 } 150 }
153 }, 151 },
154 152
155 handleElementChanging : {
156 value: function(e) {
157 var elements = this.application.ninja.selectedElements;
158
159 if(elements.length === 1) {
160 if(this.contentPanel === "rules") {
161// if(e._event.detail.type !== 'cssChange') {
162// this.ruleListContainer.displayedList.component.update();
163// }
164 } else {
165 this.computedStyleView.declaration = elements[0];
166 }
167 }
168
169 return false;
170
171 }
172 },
173 handleCloseDocument: { 153 handleCloseDocument: {
174 value: function(e) { 154 value: function(e) {
175 this.hasStyles = false; 155 this.hasStyles = false;