8000 check prefix first when setting style properties (fix #2219) · cdxfish/vue@8dd598c · GitHub
[go: up one dir, main page]

Skip to content

Commit 8dd598c

Browse files
committed
check prefix first when setting style properties (fix vuejs#2219)
1 parent b87bc00 commit 8dd598c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/directives/internal/style.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ function prefix (prop) {
100100
if (!testEl) {
101101
testEl = document.createElement('div')
102102
}
103-
if (camel in testEl.style) {
104-
return prop
105-
}
106103
var i = prefixes.length
107104
var prefixed
108105
while (i--) {
@@ -111,4 +108,7 @@ function prefix (prop) {
111108
return prefixes[i] + prop
112109
}
113110
}
111+
if (camel in testEl.style) {
112+
return prop
113+
}
114114
}

0 commit comments

Comments
 (0)
0