Skip to content

Commit 19534fe

Browse files
authored
Merge pull request surmon-china#87 from roberttolton/patch-1
Update player.vue
2 parents 99ae28e + 2917ff9 commit 19534fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/player.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,15 @@
116116
self.$emit('ready', self.player)
117117
118118
// events
119-
['loadeddata',
119+
var events = ['loadeddata',
120120
'canplay',
121121
'canplaythrough',
122122
'play',
123123
'pause',
124124
'waiting',
125125
'playing',
126-
'ended'].forEach(function(event) {
126+
'ended']
127+
events.forEach(function(event) {
127128
_this.on(event, function() {
128129
emitPlayerState(event, true)
129130
})

0 commit comments

Comments
 (0)