use es6 import (#5938)

This commit is contained in:
Krist Wongsuphasawat 2018-09-20 08:12:29 -07:00 committed by Maxime Beauchemin
parent 5b97fe5c0c
commit 1e5a02a42d
1 changed files with 2 additions and 3 deletions

View File

@ -4,18 +4,17 @@ import airbnb from './modules/colorSchemes/airbnb';
import categoricalSchemes from './modules/colorSchemes/categorical';
import lyft from './modules/colorSchemes/lyft';
import { getInstance } from './modules/ColorSchemeManager';
import { toggleCheckbox } from './modules/utils';
// Everything imported in this file ends up in the common entry file
// be mindful of double-imports
const utils = require('./modules/utils');
$(document).ready(function () {
$(':checkbox[data-checkbox-api-prefix]').change(function () {
const $this = $(this);
const prefix = $this.data('checkbox-api-prefix');
const id = $this.attr('id');
utils.toggleCheckbox(prefix, '#' + id);
toggleCheckbox(prefix, '#' + id);
});
// for language picker dropdown