Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from liammclennan/master

Fixed a couple of things in the readme Selectable#select and Selectable#deselect
  • Loading branch information...
commit faa79bcfe730fae5e90bea794602df96e2123355 2 parents d674562 + 8f7407a
@derickbailey authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 readme.md
View
8 readme.md
@@ -41,7 +41,7 @@ The following methods are included in the `Selectable` object
#### Selectable#select
Select a model, setting the model's `selected` attribute to true and
-triggering a "selected" event.
+triggering a "select" event.
```js
var myModel = new SelectableModel();
@@ -55,8 +55,8 @@ myModel.selected; //=> true
```
#### Selectable#deselect
-Select a model, setting the model's `selected` attribute to true and
-triggering a "selected" event.
+Deselect a model, setting the model's `selected` attribute to false and
+triggering a "deselect" event.
```js
var myModel = new SelectableModel();
@@ -69,7 +69,7 @@ myModel.on("deselect", function(){
myModel.select();
myModel.deselect(); //=> logs "I'm no longer selected!";
-myModel.selected; //=> true
+myModel.selected; //=> false
```
#### Selectable#toggleSelected
Please sign in to comment.
Something went wrong with that request. Please try again.