Skip to content

Commit 057c086

Browse files
committed
Fixed transitions on some Android 4.1 devices
On some devices (tested on a Samsung Galaxy S2), Android 4.1 is erroneously reporting to support unprefixed transitions events, while it’s in fact not implemented. The solution is to test for the prefixed version first. The WebKit-prefixed event has been moved on top of the tested events, and while the Object properties order is not guaranteed in JavaScript (ES3, section 4.3.3), it is the case in the targeted browser.
1 parent d3758fc commit 057c086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ function sniffEndEvents () {
208208
var el = document.createElement('vue'),
209209
defaultEvent = 'transitionend',
210210
events = {
211+
'webkitTransition' : 'webkitTransitionEnd',
211212
'transition' : defaultEvent,
212-
'mozTransition' : defaultEvent,
213-
'webkitTransition' : 'webkitTransitionEnd'
213+
'mozTransition' : defaultEvent
214214
},
215215
ret = {}
216216
for (var name in events) {

0 commit comments

Comments
 (0)