Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding examples

  • Loading branch information...
commit d2e64ba5007d994c5603c3e4825f0d661f52b4ab 1 parent 3755b6d
Eric Feminella authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 README.md
9 README.md
View
@@ -156,7 +156,10 @@ To test if an EventBroker has been created for a given namespace, simply invoke
``` javascript
// determines if an event broker for the given namespace exists
-Backbone.EventBroker.has( 'something' );
+Backbone.EventBroker.get( 'roles' );
+Backbone.EventBroker.has( 'roles' ); //true
+
+Backbone.EventBroker.has( 'roles' ); //false
```
@@ -165,5 +168,7 @@ To test if an EventBroker has been created for a given namespace, simply invoke
``` javascript
// deletes the event broker for the given namespace
-Backbone.EventBroker.destroy( 'something' );
+Backbone.EventBroker.get( 'permissions' );
+Backbone.EventBroker.destroy( 'permissions' );
+Backbone.EventBroker.has( 'permissions' ); //false
```
Please sign in to comment.
Something went wrong with that request. Please try again.