Skip to content

Commit 8e1b3f4

Browse files
committed
Fix several issues in the documentation of dom-* elements
1 parent 821f335 commit 8e1b3f4

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

lib/elements/custom-style.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
*
4040
* For example:
4141
*
42-
* ```
42+
* ```html
4343
* <!-- import apply shim--only required if using mixins -->
44-
* <link rel="import href="bower_components/shadycss/apply-shim.html">
44+
* <link rel="import" href="bower_components/shadycss/apply-shim.html">
4545
* <!-- import custom-style element -->
4646
* <link rel="import" href="bower_components/polymer/lib/elements/custom-style.html">
47-
* ...
47+
*
4848
* <custom-style>
4949
* <style>
5050
* html {

lib/elements/dom-repeat.html

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,30 @@
5252
*
5353
* </template>
5454
*
55-
* <script>
56-
* class EmployeeList extends Polymer.Element {
57-
* static get is() { return 'employee-list'; }
58-
* static get properties() {
59-
* return {
60-
* employees: {
61-
* value() {
62-
* return [
63-
* {first: 'Bob', last: 'Smith'},
64-
* {first: 'Sally', last: 'Johnson'},
65-
* ...
66-
* ];
67-
* }
68-
* }
69-
* };
70-
* }
71-
* }
72-
* < /script>
73-
*
7455
* </dom-module>
7556
* ```
7657
*
58+
* With the following custom element definition:
59+
*
60+
* ```js
61+
* class EmployeeList extends Polymer.Element {
62+
* static get is() { return 'employee-list'; }
63+
* static get properties() {
64+
* return {
65+
* employees: {
66+
* value() {
67+
* return [
68+
* {first: 'Bob', last: 'Smith'},
69+
* {first: 'Sally', last: 'Johnson'},
70+
* ...
71+
* ];
72+
* }
73+
* }
74+
* };
75+
* }
76+
* }
77+
* ```
78+
*
7779
* Notifications for changes to items sub-properties will be forwarded to template
7880
* instances, which will update via the normal structured data notification system.
7981
*

0 commit comments

Comments
 (0)