Browse files

Adding examples

  • Loading branch information...
1 parent 3755b6d commit d2e64ba5007d994c5603c3e4825f0d661f52b4ab @efeminella committed Apr 17, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 README.md
View
9 README.md
@@ -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
```

0 comments on commit d2e64ba

Please sign in to comment.