Skip to content

Commit

Permalink
clean up the most list index file (mapbox#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcwhittemore authored Oct 9, 2018
1 parent 813a1ec commit 578b817
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/modes/index.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@

const modes = [
'simple_select',
'direct_select',
'draw_point',
'draw_polygon',
'draw_line_string'
];

module.exports = modes.reduce((m, k) => {
m[k] = require(`./${k}`);
return m;
}, {});

module.exports = {
simple_select: require('./simple_select'),
direct_select: require('./direct_select'),
draw_point: require('./draw_point'),
draw_polygon: require('./draw_polygon'),
draw_line_string: require('./draw_line_string'),
};

0 comments on commit 578b817

Please sign in to comment.