From c622283877aecb217d6d02e4582284c8796767ae Mon Sep 17 00:00:00 2001 From: Daniel Loomer Date: Thu, 7 May 2015 15:54:51 -0400 Subject: [PATCH] components.md 'trigger', not 'broadcast' --- docs/components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components.md b/docs/components.md index 7aca51a9..da76aa66 100644 --- a/docs/components.md +++ b/docs/components.md @@ -432,7 +432,7 @@ var ContactList = { m.mount(document.body, ContactsWidget) ``` -Here we've moved `Contact.save(contact).then(Observable.broadcast("updateContact"))` out of the `ContactForm` component and into the model layer. In its place, `ContactForm` merely emits an action, which is then handled by this model layer observer. +Here we've moved `Contact.save(contact).then(Observable.trigger("updateContact"))` out of the `ContactForm` component and into the model layer. In its place, `ContactForm` merely emits an action, which is then handled by this model layer observer. This allows swapping the implementation of the `saveContact` handler without changing the `ContactForm` component.