From d56af1a4716445db28d343182c8bfaf211eb6ab7 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Tue, 22 May 2012 11:15:47 -0700 Subject: CSS Panel - Remove console logs --- .../css-style-rule.reel/css-style-rule.js | 2 +- .../css-panel/style-sheet.reel/style-sheet.js | 2 -- .../styles-view-container.js | 22 +--------------------- 3 files changed, 2 insertions(+), 24 deletions(-) (limited to 'js/panels/css-panel') 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, { this.selector = rule.selectorText; this.declaration = rule.style; - console.log('Rule with selector "' +rule.selectorText+ '" is set on componenet.'); + //console.log('Rule with selector "' +rule.selectorText+ '" is set on componenet.'); this._rule = rule; } 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, { set: function(sheet) { if(!sheet || sheet === this._source) { return; } - console.log('sheet being set: ', this); - this._extractData(sheet.ownerNode); this._source = sheet; } 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, { return this._prevSelection; }, set: function(value) { - console.log("setting last selection to " + value); this._prevSelection = value; } }, @@ -74,7 +73,6 @@ exports.StylesViewContainer = Montage.create(Component, { templateDidLoad : { value: function() { this.eventManager.addEventListener('styleSheetsReady', this, false); - //this.eventManager.addEventListener('elementChanging', this, false); this.eventManager.addEventListener('elementChange', this, false); this.eventManager.addEventListener("closeDocument", this, false); } @@ -94,8 +92,8 @@ exports.StylesViewContainer = Montage.create(Component, { var elements = this.application.ninja.selectedElements, elementsCopy = this._copy(elements); + ///// Is selection identical? If so, do nothing. if(this._isSameArray(elements, this.prevSelection) && this.contentPanel === "rules") { - console.log('new selection is identical'); return false; } @@ -152,24 +150,6 @@ exports.StylesViewContainer = Montage.create(Component, { } }, - handleElementChanging : { - value: function(e) { - var elements = this.application.ninja.selectedElements; - - if(elements.length === 1) { - if(this.contentPanel === "rules") { -// if(e._event.detail.type !== 'cssChange') { -// this.ruleListContainer.displayedList.component.update(); -// } - } else { - this.computedStyleView.declaration = elements[0]; - } - } - - return false; - - } - }, handleCloseDocument: { value: function(e) { this.hasStyles = false; -- cgit v1.2.3