Skip to content

Commit 7f7d2fe

Browse files
Jan SalwowskiHanks10100
authored andcommitted
Fix if prop is equal to transition (#18)
1 parent 931a709 commit 7f7d2fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ function parse(code, done) {
125125

126126
// merge style
127127
Object.keys(ruleResult).forEach(function (prop) {
128-
129128
// handle transition
130-
if (prop.indexOf('transition') === 0) {
129+
if (prop.indexOf('transition') === 0 && prop !== 'transition') {
131130
var realProp = prop.replace('transition', '')
132131
realProp = realProp[0].toLowerCase() + realProp.slice(1)
133132
jsonStyle['@TRANSITION'] = jsonStyle['@TRANSITION'] || {}

0 commit comments

Comments
 (0)