Lint Fixes
parent
e40862e6f4
commit
07dbf2528c
|
@ -215,9 +215,6 @@ export default {
|
|||
var max = Math.max(rgb.r, rgb.g, rgb.b);
|
||||
var delta = max - min;
|
||||
hsb.b = max;
|
||||
if (max !== 0) {
|
||||
|
||||
}
|
||||
hsb.s = max !== 0 ? 255 * delta / max : 0;
|
||||
if (hsb.s !== 0) {
|
||||
if (rgb.r === max) {
|
||||
|
@ -327,7 +324,7 @@ export default {
|
|||
alignOverlay() {
|
||||
DomHandler.relativePosition(this.$refs.picker, this.$refs.input);
|
||||
},
|
||||
onInputClick(event) {
|
||||
onInputClick() {
|
||||
if (this.disabled) {
|
||||
return;
|
||||
}
|
||||
|
@ -416,7 +413,7 @@ export default {
|
|||
},
|
||||
bindDocumentMouseUpListener() {
|
||||
if (!this.documentMouseUpListener) {
|
||||
this.documentMouseUpListener = (event) => {
|
||||
this.documentMouseUpListener = () => {
|
||||
this.colorDragging = false;
|
||||
this.hueDragging = false;
|
||||
DomHandler.removeClass(this.$el, 'p-colorpicker-dragging');
|
||||
|
|
Loading…
Reference in New Issue