Skip to content

Commit

Permalink
corrected wreqr based docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Derick Bailey committed Mar 24, 2013
1 parent 4a98a50 commit e1f0a52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/marionette.commands.md
Expand Up @@ -18,13 +18,13 @@ Commands object.

## Register A Command

To register a command, call `App.commands.addHandler` and provide a name for
To register a command, call `App.commands.setHandler` and provide a name for
the command to handle, and a callback method.

```js
var App = new Marionette.Application();

App.commands.addHandler("foo", function(bar){
App.commands.setHandler("foo", function(bar){
console.log(bar);
});
```
Expand Down
4 changes: 2 additions & 2 deletions docs/marionette.requestresponse.md
Expand Up @@ -18,13 +18,13 @@ RequestResponse object.

## Register A Request Handler

To register a command, call `App.reqres.addHandler` and provide a name for
To register a command, call `App.reqres.setHandler` and provide a name for
the command to handle, and a callback method.

```js
var App = new Marionette.Application();

App.reqres.addHandler("foo", function(bar){
App.reqres.setHandler("foo", function(bar){
return bar + "-quux";
});
```
Expand Down

0 comments on commit e1f0a52

Please sign in to comment.