cujojs/wire — Issue #20: Dojo pubsub plugin wires all publishers in a single module to the same topic.
Author: jeremyg484
Created: 2012-02-15 01:32:20+00:00
State: open

Given something like the following in a wire spec using the Dojo pubsub plugin:

```javascript
thing1: {
create: "test/pubsub1/Thing",
properties: {
name: "Thing 1",
logger: { $ref: 'logger' }
},
publish: {
"doSomething": "thing/did-something",
"doSomethingElse": "thing/did-something-else"
}
}
```
Invocations of both the `doSomething` and `doSomethingElse` methods result in publishing to the `thing/did-something-else` topic. This is due to a subtle closure error in the pubsub plugin here:
https://github.com/cujojs/wire/blob/dev-080/dojo/pubsub.js#L38