mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Fix mode buttons
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user