From e7b6b66ddc6b336bf30117c5d4bc0d293c5b4e59 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 24 Aug 2016 09:52:43 -0400 Subject: [PATCH] Fix mode buttons --- modules/ui/modes.js | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ui/modes.js b/modules/ui/modes.js index bbb28aa74..7447b05c9 100644 --- a/modules/ui/modes.js +++ b/modules/ui/modes.js @@ -20,7 +20,7 @@ export function Modes(context) { var buttons = selection.selectAll('button.add-button') .data(modes); - buttons.enter().append('button') + buttons = buttons.enter().append('button') .attr('tabindex', -1) .attr('class', function(mode) { return mode.id + ' add-button col4'; }) .on('click.mode-buttons', function(mode) { diff --git a/package.json b/package.json index cf3147868..67df4fb96 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "test": "npm run lint && make && phantomjs node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.html dot", "start": "rollup --config=./rollup.config.js -f iife --input ./modules/id.js --output dist/iD.js -w", "web": "http-server", - "build": "rollup --config=./rollup.config.js -f iife --input ./modules/id.js --output dist/iD.js && uglifyjs dist/iD.js -c -m -o dist/iD.min.js", + "build-min": "npm run build && uglifyjs dist/iD.js -c -m -o dist/iD.min.js", + "build": "rollup --config=./rollup.config.js -f iife --input ./modules/id.js --output dist/iD.js", "lint": "eslint js/id test/spec modules" }, "repository": {