d3-dispatch
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "d3-dispatch", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Register named callbacks and call them with arguments.", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"test": "faucet `find test -name '*-test.js'`", | ||
"prepublish": "npm run test && uglifyjs build/dispatch.js -c -m -o build/dispatch.min.js" | ||
"prepublish": "npm run test && uglifyjs build/dispatch.js -c -m -o build/dispatch.min.js && rm -f build/dispatch.zip && zip -j build/dispatch.zip -- LICENSE README.md build/dispatch.js build/dispatch.min.js" | ||
}, | ||
@@ -29,0 +29,0 @@ "devDependencies": { |
@@ -11,3 +11,3 @@ # d3-dispatch | ||
* The exposed [dispatch.*type*](#type) field is now strictly a method for invoking callbacks. Use `dispatch.on(type, …)` to get or set callbacks, rather than `dispatch[type].on(…)`. | ||
* The exposed [*dispatch*.*type*](#type) field is now strictly a method for invoking callbacks. Use `dispatch.on(type, …)` to get or set callbacks, rather than `dispatch[type].on(…)`. | ||
@@ -26,3 +26,3 @@ * The `instanceof` operator now works as expected with dispatch objects. | ||
You can then register callbacks for the different types using [dispatch.on](#on): | ||
You can then register callbacks for the different types using [*dispatch*.on](#on): | ||
@@ -35,3 +35,3 @@ ```js | ||
Lastly, you can invoke any `"start"` callbacks using [dispatch.*type*](#type): | ||
Lastly, you can invoke any `"start"` callbacks using [*dispatch*.*type*](#type): | ||
@@ -48,3 +48,3 @@ ```js | ||
If a *callback* is specified, it is registered for the specified *type*. If a callback was already registered for the same type, the existing callback is removed before the new callback is added. If *callback* is not specified, returns the current callback for the specified *type*, if any. The specified *callback* is invoked with the context and arguments specified by the caller; see [dispatch.*type*](#type). | ||
If a *callback* is specified, it is registered for the specified *type*. If a callback was already registered for the same type, the existing callback is removed before the new callback is added. If *callback* is not specified, returns the current callback for the specified *type*, if any. The specified *callback* is invoked with the context and arguments specified by the caller; see [*dispatch*.*type*](#type). | ||
@@ -51,0 +51,0 @@ <a name="type" href="#type">#</a> *dispatch*.<b>*type*</b>(<i>arguments…</i>) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13287