Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updating markdown.

  • Loading branch information...
commit 6a3845a297f7f47f92c539565620763bcbb67e38 1 parent 8f25ec6
Eric Feminella authored April 17, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  README.md
8  README.md
Source Rendered
... ...
@@ -1,7 +1,7 @@
1  
-##EventBroker API
  1
+## EventBroker API
2 2
 Provides a general purpose Event Broker implementation to Backbone based on the Backbone Events API. The EventBroker can be used directly to serve as a centralized event management mechanism for an entire application. Additional, context specific, namespaced brokers can also be created in order to provide unique brokers within a particular part of an application.
3 3
 
4  
-###Basic Usage
  4
+### Basic Usage
5 5
 The `EventBroker` can be used directly to publish and subscribe to events of interest:
6 6
 ``` javascript
7 7
 var Users = Backbone.Collection.extend{{
@@ -30,7 +30,7 @@ var UserEditor = Backbone.View.extend({
30 30
    
31 31
 ``` 
32 32
 
33  
-###Creating namespaced EventBrokers
  33
+### Creating namespaced EventBrokers
34 34
 The `EventBroker` API can be used to create and retrieve any number of specific namespaced `EventBrokers`. A namespaced `EventBroker` ensures that all events are published and subscribed against a specific namespace.
35 35
 
36 36
 Namespaced `EventBrokers` are retrieved via `Backbone.EventBroker.get(<i>namespace</i>)`. If an `EventBroker` has not been created for the given namespace, it will be created and returned. All subsequent retrievals will return the same `EventBroker` instance for the specified namespace; i.e. only one unique `EventBroker` is created per namespace.
@@ -99,7 +99,7 @@ var UserEditor = Backbone.View.extend({
99 99
    
100 100
 ```
101 101
 
102  
-###Registering Interests###
  102
+### Registering Interests
103 103
 Modules can register events of interest with an `EventBroker` via the default 'on' method or the `register` method. The `register` method allows for registering multiple event/callback mappings for a given context in a manner similar to that of the [events hash](http://documentcloud.github.com/backbone/#View-extend "Title") in a Backbone.View.
104 104
 
105 105
 ``` javascript

0 notes on commit 6a3845a

Please sign in to comment.
Something went wrong with that request. Please try again.