fix lint complaints

This commit is contained in:
Brian Hatchl
2019-02-20 15:44:16 -05:00
parent 1faa6ad839
commit d8531c88bb
3 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -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
View File
@@ -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 -5
View File
@@ -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 () {