diff --git a/lib/elements/array-selector.html b/lib/elements/array-selector.html index 79408d2e08..436983a016 100644 --- a/lib/elements/array-selector.html +++ b/lib/elements/array-selector.html @@ -373,19 +373,23 @@ * * @@ -393,20 +397,26 @@ * ``` * * ```js - * Polymer({ - * is: 'employee-list', - * ready() { - * this.employees = [ - * {first: 'Bob', last: 'Smith'}, - * {first: 'Sally', last: 'Johnson'}, - * ... - * ]; - * }, - * toggleSelection(e) { - * let item = this.$.employeeList.itemForElement(e.target); - * this.$.selector.select(item); - * } - * }); + *class EmployeeList extends Polymer.Element { + * static get is() { return 'employee-list'; } + * static get properties() { + * return { + * employees: { + * value() { + * return [ + * {first: 'Bob', last: 'Smith'}, + * {first: 'Sally', last: 'Johnson'}, + * ... + * ]; + * } + * } + * }; + * } + * toggleSelection(e) { + * let item = this.$.employeeList.itemForElement(e.target); + * this.$.selector.select(item); + * } + *} * ``` * * @polymer diff --git a/lib/elements/dom-repeat.html b/lib/elements/dom-repeat.html index 2d59e7e2b5..a68e68796f 100644 --- a/lib/elements/dom-repeat.html +++ b/lib/elements/dom-repeat.html @@ -43,10 +43,12 @@ * * @@ -116,8 +118,7 @@ * Then the `observe` property should be configured as follows: * * ```html - *