We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62bd316 commit 80486d2Copy full SHA for 80486d2
addon/modifiers/style.js
@@ -24,12 +24,9 @@ export default class StyleModifier extends Modifier {
24
* This data structure is slightly faster to process than an object / dictionary.
25
*/
26
getStyles(positional, named) {
27
- // This is a workaround for the missing `Array#flat` in IE11.
28
- return [].concat(
29
- ...[...positional.filter(isObject), named].map((obj) =>
30
- Object.entries(obj).map(([k, v]) => [dasherize(k), v])
31
- )
32
- );
+ return [...positional.filter(isObject), named]
+ .map((obj) => Object.entries(obj).map(([k, v]) => [dasherize(k), v]))
+ .flat();
33
}
34
35
setStyles(element, newStyles) {
0 commit comments