style: Fix formatting issue
This commit is contained in:
parent
8d4d23281c
commit
f6250c48c6
3 changed files with 5 additions and 2 deletions
|
|
@ -149,6 +149,7 @@ class UserProfile {
|
|||
});
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
render_percentage_chart(field, title) {
|
||||
// REDESIGN-TODO: chart seems to be broken. Enable this once fixed.
|
||||
this.wrapper.find('.percentage-chart-container').hide();
|
||||
|
|
|
|||
|
|
@ -119,7 +119,8 @@ class Picker {
|
|||
}
|
||||
|
||||
setup_hue_event() {
|
||||
let on_drag = (x, _y) => {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
let on_drag = (x, y) => {
|
||||
this.hue_selector_position.x = x;
|
||||
this.hue = Math.round(x * 360 / this.hue_map.offsetWidth);
|
||||
this.update_color_map();
|
||||
|
|
@ -150,6 +151,7 @@ class Picker {
|
|||
get_pointer_coords() {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
let h, s, v;
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
[h, s, v] = utils.get_hsv(this.get_color());
|
||||
let width = this.color_map.offsetWidth;
|
||||
let height = this.color_map.offsetHeight;
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ window.rstrip = function (s, chars) {
|
|||
if (!chars) chars = ['\n', '\t', ' '];
|
||||
var last_char = s.substr(s.length - 1);
|
||||
while (in_list(chars, last_char)) {
|
||||
var s = s.substr(0, s.length - 1);
|
||||
let s = s.substr(0, s.length - 1);
|
||||
last_char = s.substr(s.length - 1);
|
||||
}
|
||||
return s;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue