Skip to content
Browse files

corrected command and req/res method names in docs

  • Loading branch information...
1 parent db05747 commit d125c18f3143a41ead1422e54c4bca4092e99ff8 @derickbailey derickbailey committed Oct 29, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 docs/marionette.commands.md
  2. +2 −2 docs/marionette.requestresponse.md
View
4 docs/marionette.commands.md
@@ -18,13 +18,13 @@ Commands object.
## Register A Command
-To register a command, call `App.commands.register` and provide a name for
+To register a command, call `App.commands.addHandler` and provide a name for
the command to handle, and a callback method.
```js
var App = new Marionette.Application();
-App.commands.register("foo", function(bar){
+App.commands.addHandler("foo", function(bar){
console.log(bar);
});
```
View
4 docs/marionette.requestresponse.md
@@ -18,13 +18,13 @@ RequestResponse object.
## Register A Request Handler
-To register a command, call `App.reqres.register` and provide a name for
+To register a command, call `App.reqres.addHandler` and provide a name for
the command to handle, and a callback method.
```js
var App = new Marionette.Application();
-App.reqres.register("foo", function(bar){
+App.reqres.addHandler("foo", function(bar){
return bar + "-quux";
});
```

0 comments on commit d125c18

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