/*String*/ event){
// summary:// Ensure that every time obj.event() is called, a message is published// on the topic. Returns a handle which can be passed to// dojo.disconnect() to disable subsequent automatic publication on// the topic.// topic:// The name of the topic to publish.// obj:// The source object for the event function. Defaults to dojo.global// if null.// event:// The name of the event function in obj.// I.e. identifies a property obj[event].// example:// | dojo.connectPublisher("/ajax/start", dojo, "xhrGet");var pf = function(){dojo.publish(topic, arguments); }
return event ? dojo.connect(obj, event, pf) : dojo.connect(obj, pf); //Handle
};