From 7fa61f9f6ad1ed7f038683ed2f550fb7897166e2 Mon Sep 17 00:00:00 2001 From: Leigh Quince Date: Tue, 18 Nov 2014 10:20:33 +0100 Subject: [PATCH] update model listening examples to be inline with API Picky triggers `this.trigger("selected", this);` but the example listened for `select`, just changed the readme to reflect this --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 3386836..6bd293d 100644 --- a/readme.md +++ b/readme.md @@ -123,7 +123,7 @@ triggering a "select" event. ```js var myModel = new SelectableModel(); -myModel.on("select", function(){ +myModel.on("selected", function(){ console.log("I'm selected!"); }); @@ -157,7 +157,7 @@ the `select` or `deselect` method appropriately. ```js var myModel = new SelectableModel(); -myModel.on("select", function(){ +myModel.on("selected", function(){ console.log("I'm selected!"); });