bloody-jquery-plugins
bloody-jquery-plugins copied to clipboard
Allow callers of publish() to see how many subscribers were notified.
Adding a return value to the publish method allows callers to determine how many (if any) subscribers received the topic. This would aid debugging because publishers could take action in the event there are no subscribers to the topic at the time the topic is published.