()
| 10 | */ |
| 11 | export default class StyleNormalizer { |
| 12 | constructor() { |
| 13 | this.normalizers = {}; |
| 14 | this.createNormalizers('margin', [HORIZONTAL, VERTICAL, SIDES]); |
| 15 | this.createNormalizers('padding', [HORIZONTAL, VERTICAL, SIDES]); |
| 16 | } |
| 17 | |
| 18 | createNormalizers(prop, shorthands, suffix = '') { |
| 19 | shorthands.forEach(shorthand => { |
nothing calls this directly
no test coverage detected