Permalink
Browse files

Adding more examples

  • Loading branch information...
1 parent d587ca8 commit 3755b6dde822a8f1aa38cb83736e1c8001ef298d @efeminella committed Apr 17, 2012
Showing with 18 additions and 1 deletion.
  1. +18 −1 README.md
View
@@ -149,4 +149,21 @@ var Users = Backbone.Collection.extend(
update: function() { ... },
remove: function() { ... }
});
-```
+```
+
+### Determining if an EventBroker has been created
+To test if an EventBroker has been created for a given namespace, simply invoke the 'has' method:
+
+``` javascript
+// determines if an event broker for the given namespace exists
+Backbone.EventBroker.has( 'something' );
+```
+
+
+### Destroying an EventBroker
+To test if an EventBroker has been created for a given namespace, simply invoke the 'has' method:
+
+``` javascript
+// deletes the event broker for the given namespace
+Backbone.EventBroker.destroy( 'something' );
+```

0 comments on commit 3755b6d

Please sign in to comment.