rishson/dojoEnterpriseApp — Issue #4: pubList population is clunky
Author: rishson
Created: 2011-11-04 15:51:14+00:00
State: open

Should we combine the population of a pubList or subList with the dojo.subscribe?
Currently we do:

this.subList.NEW_TOPIC = '/some/topic/name';
dojo.subscribe(this.subList.NEW_TOPIC, this, this._handleResponseFromSomeNewTopic);

Maybe we do:

var newTopic = {topic: '/some/new/topic', handler: this._handleResponseFromSomeNewTopic, scope: this};
this.subList.NEW_TOPIC = newTopic;

Then in _Widget, we can iterate over the pub and sub lists and create the dojo.subscribes).