Skip to content

Commit

Permalink
Release 0.11.1: Fixes issue with open action on d3-wb-mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
Basti Tee committed Dec 31, 2018
1 parent 1fcd4b3 commit 328d508
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions d3-wb/d3-wb-modules/d3-wb-mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
let click = function() {
// ------------------------------------
const defaultEvent = 'dblclick';
const defaultAction = 'open';
const defaultAction = 'openTarget';
const supportedEvents = [defaultEvent];
const supportedActions = [defaultAction];
// ------------------------------------
Expand All @@ -188,7 +188,7 @@
};

let evaluateEventOpen = function(action, event, s) {
if (action != 'open') {
if (action != 'openTarget') {
return;
}
s.on(event, function(d, i) {
Expand Down
2 changes: 1 addition & 1 deletion default-content/coll_01_tech_specs/003-d3-wb-mouse/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

// appends a click-event
let rectDoubleClick = d3wb.mouse.click()
.action('open')
.action('openTarget')
.event('dblclick')
.openTarget(function(d) {
return 'https://www.google.de/search?q=' + d.value;
Expand Down
2 changes: 1 addition & 1 deletion default-content/d3-wb-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.0
0.11.1
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3-workbench",
"version": "0.11.0",
"version": "0.11.1",
"description": "A d3.js-powered workbench for rapid visualization prototyping",
"repository": {
"type": "git",
Expand Down

0 comments on commit 328d508

Please sign in to comment.