From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/panels/color/colorpopup-manager.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'js/panels/color/colorpopup-manager.js') diff --git a/js/panels/color/colorpopup-manager.js b/js/panels/color/colorpopup-manager.js index f0b8060a..5667fbe7 100755 --- a/js/panels/color/colorpopup-manager.js +++ b/js/panels/color/colorpopup-manager.js @@ -27,7 +27,7 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + //////////////////////////////////////////////////////////////////////// // var Montage = require("montage/core/core").Montage, @@ -45,7 +45,7 @@ exports.ColorPopupManager = Montage.create(Component, { //////////////////////////////////////////////////////////////////// // _hasCloseEvents: { - value: false + value: false }, //////////////////////////////////////////////////////////////////// // @@ -81,7 +81,7 @@ exports.ColorPopupManager = Montage.create(Component, { value: function (e) { // this.closeAllPopups(e); - } + } }, //////////////////////////////////////////////////////////////////// // @@ -89,7 +89,7 @@ exports.ColorPopupManager = Montage.create(Component, { value: function (e) { // this.hideColorPopup(); - } + } }, //////////////////////////////////////////////////////////////////// // @@ -121,7 +121,7 @@ exports.ColorPopupManager = Montage.create(Component, { this.hideColorPopup(); } } - } + } }, //////////////////////////////////////////////////////////////////// // @@ -129,11 +129,11 @@ exports.ColorPopupManager = Montage.create(Component, { value: function (element, e) { //Prevent any action for button to handle toggling if (e._event.target.inputType || e._event.target.colorMode) return true; - //Storing limits of popup + //Storing limits of popup var top, bottom, left, right; //Checking for popup to be opened otherwise nothing happens if (element && element.opened && element.popup && element.popup.element) { - //Getting horizontal limits + //Getting horizontal limits left = parseInt(element.popup.element.style.left) + parseInt(element.popup.element.style.marginLeft); right = left + parseInt(element.popup.element.offsetWidth); //Getting vertical limits @@ -151,7 +151,7 @@ exports.ColorPopupManager = Montage.create(Component, { //Hides popups since element not detected return false; } - } + } }, //////////////////////////////////////////////////////////////////// // @@ -239,7 +239,7 @@ exports.ColorPopupManager = Montage.create(Component, { // this._popupBase.needsDraw = true; this._popupBase.addEventListener('firstDraw', this, false); - } + } } }, //////////////////////////////////////////////////////////////////// @@ -648,11 +648,11 @@ exports.ColorPopupManager = Montage.create(Component, { this._popupChipBase._components.hex.value = null; } else if (!isNaN(e._target._xStart) && !e._event.wasSetByCode) { if (!isNaN(e._target._numValue)) { - this._popupChipBase.colorManager.alpha = {value: e._target._numValue/100, type: 'change', wasSetByCode: false}; + this._popupChipBase.colorManager.alpha = {value: e._target._numValue/100, type: 'change', wasSetByCode: false}; } this.colorChipChange(e); } else if (!e._event.wasSetByCode && (e._event.mode && e._event.mode === 'nocolor')) { - this.colorChipChange(e); + this.colorChipChange(e); } else if (!e._event.wasSetByCode && (e._event.mode && e._event.mode === 'hex')) { this.colorChipChange(e); } @@ -668,7 +668,7 @@ exports.ColorPopupManager = Montage.create(Component, { this._popupChipBase._components.hex.value = null; } else if (!isNaN(e._target._xStart) && !e._event.wasSetByCode) { if (!isNaN(e._target._numValue)) { - this._popupGradientChipBase.colorManager.alpha = {value: e._target._numValue/100, type: 'change', wasSetByCode: false}; + this._popupGradientChipBase.colorManager.alpha = {value: e._target._numValue/100, type: 'change', wasSetByCode: false}; } this.colorGradientChipChange(e); } else if (!e._event.wasSetByCode && (e._event.mode && e._event.mode === 'hex')) { @@ -677,7 +677,7 @@ exports.ColorPopupManager = Montage.create(Component, { } else { if (!isNaN(e._target._xStart) && !e._event.wasSetByCode) { if (!isNaN(e._target._numValue)) { - this._popupGradientChipBase.colorManager.alpha = {value: e._target._numValue/100, type: 'change', wasSetByCode: false}; + this._popupGradientChipBase.colorManager.alpha = {value: e._target._numValue/100, type: 'change', wasSetByCode: false}; } this.colorGradientChipChange(e); } else if (!e._event.wasSetByCode && (e._event.mode && e._event.mode === 'hex')) { @@ -716,7 +716,7 @@ exports.ColorPopupManager = Montage.create(Component, { } //Converting color to RGB to update buttons background colors (affecting only view) var color = this.colorManager.hsvToRgb(e._event.hsv.h/(Math.PI*2), e._event.hsv.s, e._event.hsv.v), i, input = this.colorManager.input; - + if (input === 'chip') { var ctx, cvs = this.application.ninja.colorController.colorView.currentChip.getElementsByTagName('canvas')[0]; //if (cvs && color) { -- cgit v1.2.3