From 62a47c22cf5fb76289a50be8e73de1ae8c55c78f Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Wed, 16 May 2012 14:59:43 -0700 Subject: CSS Panel - Fix toggling style on/off. --- js/panels/css-panel/css-style.reel/css-style.js | 3 +-- js/panels/css-panel/styles-view-delegate.js | 9 --------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/js/panels/css-panel/css-style.reel/css-style.js b/js/panels/css-panel/css-style.reel/css-style.js index face668e..61723284 100644 --- a/js/panels/css-panel/css-style.reel/css-style.js +++ b/js/panels/css-panel/css-style.reel/css-style.js @@ -22,7 +22,7 @@ exports.CssStyle = Montage.create(Component, { return this._valueText; }, set: function(text) { - this._valueText = text; + this._valueText = this.browserValue = text; this.units = this.getUnits(text); } }, @@ -315,7 +315,6 @@ exports.CssStyle = Montage.create(Component, { prepareForDraw : { value: function() { - console.log("style's prepare for draw"); this.element.addEventListener('dragstart', this, false); this.element.addEventListener('drag', this, false); this.element.addEventListener('dragend', this, false); diff --git a/js/panels/css-panel/styles-view-delegate.js b/js/panels/css-panel/styles-view-delegate.js index 0b09f2a6..04d0ca09 100644 --- a/js/panels/css-panel/styles-view-delegate.js +++ b/js/panels/css-panel/styles-view-delegate.js @@ -78,7 +78,6 @@ exports.StylesViewMediator = Montage.create(Component, { ///// Enable/Disable Style when checkbox is clicked handleStyleToggle : { value: function(rule, enable, style) { - debugger; if(enable) { this.stylesController.setStyle(rule, style.propertyText, style.browserValue, style.priority); } else { @@ -93,8 +92,6 @@ exports.StylesViewMediator = Montage.create(Component, { value: function(e, style) { var key, nextFocus; - console.log("Handle Style Stop"); - if(e._event.detail.type === 'keydown') { key = e._event.detail.keyCode; @@ -114,8 +111,6 @@ exports.StylesViewMediator = Montage.create(Component, { handleValueStop: { value: function(e, style) { var key, nextFocus; - console.log("Handle Value Stop"); - console.log("Editing new style: ", style.editingNewStyle); if(e._event.detail.type === 'keydown') { key = e._event.detail.keyCode; @@ -163,8 +158,6 @@ exports.StylesViewMediator = Montage.create(Component, { ///// Mark style as invalid if the browser doesn't accept it style.invalid = (browserValue === null); - console.log("BrowserValue: ", browserValue, rule); - this._dispatchChange(property, browserValue); } }, @@ -195,8 +188,6 @@ exports.StylesViewMediator = Montage.create(Component, { ///// Mark style as invalid if the browser doesn't accept it style.invalid = (browserValue === null); - console.log("BrowserValue: ", browserValue, rule); - this._dispatchChange(property, browserValue); if(style.editingNewStyle) { -- cgit v1.2.3