Permalink
Browse files

Fixes #546, rebind context.dispatch to window.api

  • Loading branch information...
tmcw committed Feb 2, 2017
1 parent e7cc955 commit 9766a80c19304c86fb5aed5bdaa7aa64f364c71a
Showing with 8 additions and 0 deletions.
  1. +4 −0 API.md
  2. +2 −0 dist/site.js
  3. +2 −0 src/core/api.js
View
4 API.md
@@ -116,6 +116,10 @@ which are supported in Chrome & Firefox.
Exposes the [Leaflet.Draw](https://github.com/Leaflet/Leaflet.draw) control
instance in the console.
## `window.api.on(event, fn)`
Exposes d3 events, including `change`.
## Protips
To include `turf` from [turf](https://github.com/turfjs/turf) so you can manipulate features
View
@@ -25840,6 +25840,8 @@ function api(context) {
drawControl: context.drawControl,
data: context.data
};
d3.rebind(window.api, context.dispatch, 'on');
}
},{}],144:[function(require,module,exports){
View
@@ -36,4 +36,6 @@ function api(context) {
drawControl: context.drawControl,
data: context.data
};
d3.rebind(window.api, context.dispatch, 'on');
}

0 comments on commit 9766a80

Please sign in to comment.