code formating

Signed-off-by:Guillaume Martigny <guillaume.martigny@gmail.com>
This commit is contained in:
Guillaume Martigny 2016-02-03 14:17:12 +01:00
parent fb9c600b9f
commit 9bd3bf4adf

View File

@ -2,7 +2,7 @@
var ns = $.namespace('pskl.controller'); var ns = $.namespace('pskl.controller');
ns.PaletteController = function () { ns.PaletteController = function () {
this.displayer = $('.palette-value-displayer'); this.displayer = $('.palette-value-displayer');
}; };
/** /**
@ -29,7 +29,7 @@
tinycolor.setAlpha(1); tinycolor.setAlpha(1);
} }
}; };
// Initialize colorpickers: // Initialize colorpickers:
var colorPicker = $('#color-picker'); var colorPicker = $('#color-picker');
colorPicker.spectrum($.extend({color: Constants.DEFAULT_PEN_COLOR}, spectrumCfg)); colorPicker.spectrum($.extend({color: Constants.DEFAULT_PEN_COLOR}, spectrumCfg));
@ -116,7 +116,9 @@
* @private * @private
*/ */
ns.PaletteController.prototype.showValueDisplayer_ = function (evt) { ns.PaletteController.prototype.showValueDisplayer_ = function (evt) {
var color = evt.data.isPrimary ? pskl.app.selectedColorsService.getPrimaryColor() : pskl.app.selectedColorsService.getSecondaryColor(); var color = evt.data.isPrimary ?
pskl.app.selectedColorsService.getPrimaryColor() :
pskl.app.selectedColorsService.getSecondaryColor();
this.displayer.html(color); this.displayer.html(color);
}; };
/** /**