|
Last change
on this file since 505f39a was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Working / before login
|
-
Property mode
set to
100644
|
|
File size:
463 bytes
|
| Line | |
|---|
| 1 | let Declaration = require('../declaration')
|
|---|
| 2 | let utils = require('../utils')
|
|---|
| 3 |
|
|---|
| 4 | class Appearance extends Declaration {
|
|---|
| 5 | constructor(name, prefixes, all) {
|
|---|
| 6 | super(name, prefixes, all)
|
|---|
| 7 |
|
|---|
| 8 | if (this.prefixes) {
|
|---|
| 9 | this.prefixes = utils.uniq(
|
|---|
| 10 | this.prefixes.map(i => {
|
|---|
| 11 | if (i === '-ms-') {
|
|---|
| 12 | return '-webkit-'
|
|---|
| 13 | }
|
|---|
| 14 | return i
|
|---|
| 15 | })
|
|---|
| 16 | )
|
|---|
| 17 | }
|
|---|
| 18 | }
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | Appearance.names = ['appearance']
|
|---|
| 22 |
|
|---|
| 23 | module.exports = Appearance
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.