identation requirement to eslint
This commit is contained in:
@@ -75,7 +75,7 @@ class PaintBox {
|
||||
console.error(`the color ${color} is referenced by an url that can't be identified - using 'none'`);
|
||||
opts.solidColor = 'none';
|
||||
} else {
|
||||
opts[refElem.tagName] = refElem;
|
||||
opts[refElem.tagName] = refElem;
|
||||
}
|
||||
} else if (color.startsWith('#')) {
|
||||
opts.solidColor = color.substr(1);
|
||||
|
||||
@@ -102,7 +102,7 @@ export function getClosest(elem, selector) {
|
||||
* @param {String} selector The class, id, data attribute, or tag to look for
|
||||
* @return {Array} Null if no match
|
||||
*/
|
||||
export function getParents(elem, selector) {
|
||||
export function getParents(elem, selector) {
|
||||
const parents = [];
|
||||
let firstChar;
|
||||
if ( selector ) {
|
||||
|
||||
@@ -608,7 +608,7 @@ export function jPickerMethod (elem, options, commitCallback, liveCallback, canc
|
||||
sets = mergeDeep(sets, options);
|
||||
|
||||
const that = elem,
|
||||
settings = sets;
|
||||
settings = sets;
|
||||
if (that.nodeName.toLowerCase() === 'input') { // Add color picker icon if binding to an input element and bind the events to the input
|
||||
Object.assign(settings, {
|
||||
window: {
|
||||
|
||||
@@ -674,7 +674,7 @@ export class SeColorPicker extends HTMLElement {
|
||||
* @param {any} name
|
||||
* @returns {void}
|
||||
*/
|
||||
init (i18next) {
|
||||
init (i18next) {
|
||||
this.i18next = i18next;
|
||||
this.setAttribute('config-change_xxx_color', i18next.t('config.change_xxx_color'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user