Permalink
Browse files

corrected wreqr based docs

  • Loading branch information...
1 parent 4a98a50 commit e1f0a52292891a18ed796ddc43c54d87eb22326f @derickbailey derickbailey committed Mar 24, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 docs/marionette.commands.md
  2. +2 −2 docs/marionette.requestresponse.md
@@ -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);
});
```
@@ -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";
});
```

0 comments on commit e1f0a52

Please sign in to comment.