Skip to content

Commit

Permalink
Merge pull request #1313 from fredj/doc-typo
Browse files Browse the repository at this point in the history
[0.8] Minor doc typo
  • Loading branch information
kevinpschaaf committed Mar 20, 2015
2 parents cd362bb + 18181b4 commit 7df8dea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PRIMER.md
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ Elements in a template can be automatically repeated and bound to array items us
<div> Employee list: </div>
<template is="x-repeat" items="{{employees}}">
<div>First name: <span>{{item.first}}</span></div>
<div>Last name: <span>{{itemlast}}</span></div>
<div>Last name: <span>{{item.last}}</span></div>
</template>

</template>
Expand Down
10 changes: 5 additions & 5 deletions src/lib/template/x-array-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div> Employee list: </div>
<template is="x-repeat" id="employeeList" items="{{employees}}">
<div>First name: <span>{{item.first}}</span></div>
<div>Last name: <span>{{itemlast}}</span></div>
<div>Last name: <span>{{item.last}}</span></div>
<button on-click="toggleSelection">Select</button>
</template>
Expand All @@ -36,7 +36,7 @@
<div> Selected employees: </div>
<template is="x-repeat" items="{{selected}}">
<div>First name: <span>{{item.first}}</span></div>
<div>Last name: <span>{{itemlast}}</span></div>
<div>Last name: <span>{{item.last}}</span></div>
</template>
</template>
Expand Down Expand Up @@ -124,8 +124,7 @@
},

/**
* Selects the given item. When `toggle` is true, this will automatically
* deselect the item if already selected.
* Deselects the given item if it is already selected.
*/
deselect: function(item) {
if (this.multi) {
Expand All @@ -146,7 +145,8 @@
},

/**
* Deselects the given item if it is already selected.
* Selects the given item. When `toggle` is true, this will automatically
* deselect the item if already selected.
*/
select: function(item) {
var key = this.itemsCollection.getKey(item);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/template/x-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div> Employee list: </div>
<template is="x-repeat" items="{{employees}}">
<div>First name: <span>{{item.first}}</span></div>
<div>Last name: <span>{{itemlast}}</span></div>
<div>Last name: <span>{{item.last}}</span></div>
</template>
</template>
Expand Down

0 comments on commit 7df8dea

Please sign in to comment.