Skip to content
Browse files

More examples

  • Loading branch information...
1 parent 97ccef6 commit 4cca25b3ba7c220f36cc28826d4620f74efc4b78 @efeminella committed Apr 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -172,7 +172,7 @@ var CartView = Backbone.View.extend(
{
// register events/callbacks with 'items' EventBroker...
this.itemsBroker.register({
- 'add' : 'select',
+ 'add' : 'add',
'update' : 'update',
'remove' : 'remove'
}, this );
@@ -217,15 +217,15 @@ EventBroker.has( 'permissions' ); //false
### Destroying all EventBrokers
-To destroy all existing `EventBrokers`, invoke the `destroy` method with no arguments or 'all':
+To destroy all existing `EventBrokers`, invoke the `destroy` method with no arguments:
``` javascript
// deletes the event broker for the given namespace
var EventBroker = Backbone.EventBroker;
EventBroker.get( 'permissions' );
EventBroker.get( 'users' );
EventBroker.get( 'roles' );
-EventBroker.destroy( 'all' );
+EventBroker.destroy();
EventBroker.has( 'permissions' ); //false
EventBroker.has( 'users' ); //false

0 comments on commit 4cca25b

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