Skip to content

Commit 9ac3c15

Browse files
authored
Merge pull request #223 from edwardfxiao/master
Fix #222
2 parents 82154d0 + f213d8e commit 9ac3c15

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

modules/generator/generatePrefixMap.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,16 @@ export default function generatePrefixMap(browserList: Object): Object {
5454
const versions = getSupport(keyword)
5555

5656
for (let i = 0, len = keywordProperties.length; i < len; ++i) {
57-
if (versions[browser].x >= browserList[browser]) {
58-
const property = keywordProperties[i]
59-
if (!prefixMap[property]) {
60-
prefixMap[property] = []
61-
}
57+
if (versions[browser]){
58+
if (versions[browser].x >= browserList[browser]) {
59+
var property = keywordProperties[i];
60+
if (!prefixMap[property]) {
61+
prefixMap[property] = [];
62+
}
6263

63-
if (prefixMap[property].indexOf(prefix) === -1) {
64-
prefixMap[property].push(prefix)
64+
if (prefixMap[property].indexOf(prefix) === -1) {
65+
prefixMap[property].push(prefix);
66+
}
6567
}
6668
}
6769
}

0 commit comments

Comments
 (0)