diff --git a/types/lib/elements/array-selector.d.ts b/types/lib/elements/array-selector.d.ts index f9e6c440b4..8a009f1248 100644 --- a/types/lib/elements/array-selector.d.ts +++ b/types/lib/elements/array-selector.d.ts @@ -143,19 +143,23 @@ declare namespace Polymer { * * @@ -163,20 +167,26 @@ declare namespace Polymer { * ``` * * ```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); + * } + * } * ``` */ class ArraySelector extends