Skip to content

Commit

Permalink
Adding more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
efeminella committed Apr 17, 2012
1 parent d587ca8 commit 3755b6d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Expand Up @@ -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.