mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
code formating
Signed-off-by:Guillaume Martigny <guillaume.martigny@gmail.com>
This commit is contained in:
parent
fb9c600b9f
commit
9bd3bf4adf
@ -2,7 +2,7 @@
|
||||
var ns = $.namespace('pskl.controller');
|
||||
|
||||
ns.PaletteController = function () {
|
||||
this.displayer = $('.palette-value-displayer');
|
||||
this.displayer = $('.palette-value-displayer');
|
||||
};
|
||||
|
||||
/**
|
||||
@ -29,7 +29,7 @@
|
||||
tinycolor.setAlpha(1);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// Initialize colorpickers:
|
||||
var colorPicker = $('#color-picker');
|
||||
colorPicker.spectrum($.extend({color: Constants.DEFAULT_PEN_COLOR}, spectrumCfg));
|
||||
@ -116,7 +116,9 @@
|
||||
* @private
|
||||
*/
|
||||
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);
|
||||
};
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user