mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
fix lint complaints
This commit is contained in:
@@ -315,7 +315,7 @@ export function coreContext() {
|
||||
//get favorites from local storage
|
||||
context.getFavoritePresets = function() {
|
||||
return JSON.parse(context.storage('favorite_presets')) || [];
|
||||
}
|
||||
};
|
||||
context.favoritePreset = function(preset, geom) {
|
||||
var favs = context.getFavoritePresets();
|
||||
|
||||
|
||||
+1
-1
@@ -110,7 +110,7 @@ export function uiModes(context) {
|
||||
description: [t('operations.add.title'), t('presets.presets.' + preset.id + '.name').toLowerCase(), t('geometry.' + d.geom)].join(' '),
|
||||
key: '',
|
||||
icon: icon
|
||||
}
|
||||
};
|
||||
switch (d.geom) {
|
||||
case 'point':
|
||||
case 'vertex':
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import _find from 'lodash-es/find';
|
||||
import _omit from 'lodash-es/omit';
|
||||
|
||||
import {
|
||||
event as d3_event,
|
||||
select as d3_select
|
||||
@@ -8,7 +5,6 @@ import {
|
||||
|
||||
import { t } from '../util/locale';
|
||||
import { svgIcon } from '../svg';
|
||||
import { uiModes } from './modes';
|
||||
|
||||
export function uiPresetFavorite(preset, geom, context) {
|
||||
|
||||
@@ -34,7 +30,7 @@ export function uiPresetFavorite(preset, geom, context) {
|
||||
.merge(_button);
|
||||
|
||||
_button
|
||||
.classed('active', function(d) {
|
||||
.classed('active', function() {
|
||||
return context.isFavoritePreset(preset, geom);
|
||||
})
|
||||
.on('click', function () {
|
||||
|
||||
Reference in New Issue
Block a user