Skip to content

Commit a55e248

Browse files
committed
Typos and other minor changes.
1 parent 002c98a commit a55e248

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CHANGELOG.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ This update to Polymer includes some new [global settings](https://polymer-libra
7474

7575
computeC(a, b) {
7676
console.log('Computing c...');
77-
return a * 2 + b * 2;
77+
return (a + b) * 2;
7878
}
7979
}
8080

@@ -99,7 +99,7 @@ This update to Polymer includes some new [global settings](https://polymer-libra
9999

100100
- First, `fastDomIf` requires that every `<dom-if>` is in the shadow root of a Polymer element: you can't use a `<dom-if>` directly in the main document or inside a shadow root of an element that doesn't extend `PolymerElement`.
101101

102-
- Second, because the `fastDomIf` implementation of `<dom-if>` doesn't include its own template stamping features, it doesn't create its own scope for property effects. This means that any properties you were previously setting on the `<dom-if>` will no longr be applied within its template, only properties of the host element are available.
102+
- Second, because the `fastDomIf` implementation of `<dom-if>` doesn't include its own template stamping features, it doesn't create its own scope for property effects. This means that any properties you were previously setting on the `<dom-if>` will no longer be applied within its template, only properties of the host element are available.
103103

104104
**Should I use it?** This setting is recommended as long as your app doesn't use `<dom-if>` as described in the section above.
105105

@@ -111,7 +111,7 @@ This update to Polymer includes some new [global settings](https://polymer-libra
111111

112112
- `suppressTemplateNotifications` / `setSuppressTemplateNotifications`
113113

114-
**What does it do?** This setting causes `<dom-if>` and `<dom-repeat>` not to dispatch `dom-change` events when their rendered content is updated. If you're using lots of `<dom-if>` and `<dom-repeat>` but not listening for these events, this setting lets you disable them and their associated propagation work.
114+
**What does it do?** This setting causes `<dom-if>` and `<dom-repeat>` not to dispatch `dom-change` events when their rendered content is updated. If you're using lots of `<dom-if>` and `<dom-repeat>` but not listening for these events, this setting lets you disable them and their associated dispatch work.
115115

116116
You can override the global setting for an individual `<dom-if>` or `<dom-repeat>` by setting its `notify-dom-change` boolean attribute:
117117

@@ -165,7 +165,7 @@ This update to Polymer includes some new [global settings](https://polymer-libra
165165

166166
**What does it do?** If your application is uses [pre-built Shady CSS styles](https://github.com/polymer/polymer-css-build) and your browser supports [constructable stylesheet objects](https://wicg.github.io/construct-stylesheets/), this setting will cause Polymer to extract all `<style>` elements from your components' templates, join them into a single stylesheet, and share this stylesheet with all instances of the component using their shadow roots' [`adoptedStyleSheets`](https://wicg.github.io/construct-stylesheets/#dom-documentorshadowroot-adoptedstylesheets) array. This setting may improve your components' memory usage and performance depending on how many instances you create and how large their style sheets are.
167167

168-
**Should I use it?** Consider using this setting if your app already uses pre-built Shady CSS styles. Note that position-dependent CSS selectors (e.g. containing `:nth-child()`) may become unreliable for siblings of your components styles as a result of runtime-detected browser support determining if styles are removed from your components' shadow roots.
168+
**Should I use it?** Consider using this setting if your app already uses pre-built Shady CSS styles. Note that position-dependent CSS selectors (e.g. containing `:nth-child()`) may become unreliable for siblings of your components' styles as a result of runtime-detected browser support determining if styles are removed from your components' shadow roots.
169169

170170
### Other new features
171171

0 commit comments

Comments
 (0)