Skip to content

Commit 7df8dea

Browse files
committed
Merge pull request #1313 from fredj/doc-typo
[0.8] Minor doc typo
2 parents cd362bb + 18181b4 commit 7df8dea

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

PRIMER.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ Elements in a template can be automatically repeated and bound to array items us
13821382
<div> Employee list: </div>
13831383
<template is="x-repeat" items="{{employees}}">
13841384
<div>First name: <span>{{item.first}}</span></div>
1385-
<div>Last name: <span>{{itemlast}}</span></div>
1385+
<div>Last name: <span>{{item.last}}</span></div>
13861386
</template>
13871387

13881388
</template>

src/lib/template/x-array-selector.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div> Employee list: </div>
2828
<template is="x-repeat" id="employeeList" items="{{employees}}">
2929
<div>First name: <span>{{item.first}}</span></div>
30-
<div>Last name: <span>{{itemlast}}</span></div>
30+
<div>Last name: <span>{{item.last}}</span></div>
3131
<button on-click="toggleSelection">Select</button>
3232
</template>
3333
@@ -36,7 +36,7 @@
3636
<div> Selected employees: </div>
3737
<template is="x-repeat" items="{{selected}}">
3838
<div>First name: <span>{{item.first}}</span></div>
39-
<div>Last name: <span>{{itemlast}}</span></div>
39+
<div>Last name: <span>{{item.last}}</span></div>
4040
</template>
4141
4242
</template>
@@ -124,8 +124,7 @@
124124
},
125125

126126
/**
127-
* Selects the given item. When `toggle` is true, this will automatically
128-
* deselect the item if already selected.
127+
* Deselects the given item if it is already selected.
129128
*/
130129
deselect: function(item) {
131130
if (this.multi) {
@@ -146,7 +145,8 @@
146145
},
147146

148147
/**
149-
* Deselects the given item if it is already selected.
148+
* Selects the given item. When `toggle` is true, this will automatically
149+
* deselect the item if already selected.
150150
*/
151151
select: function(item) {
152152
var key = this.itemsCollection.getKey(item);

src/lib/template/x-repeat.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<div> Employee list: </div>
3030
<template is="x-repeat" items="{{employees}}">
3131
<div>First name: <span>{{item.first}}</span></div>
32-
<div>Last name: <span>{{itemlast}}</span></div>
32+
<div>Last name: <span>{{item.last}}</span></div>
3333
</template>
3434
3535
</template>

0 commit comments

Comments
 (0)