File tree 3 files changed +6
-9
lines changed
3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ sudo: false
2
2
language : node_js
3
3
node_js :
4
4
- ' node'
5
- - ' 4.2 '
5
+ - ' 4.3 '
6
6
- ' 0.12'
7
7
- ' 0.10'
8
8
Original file line number Diff line number Diff line change 1
- Copyright 2016 Brightcove, Inc.
1
+ Copyright Brightcove, Inc.
2
2
3
3
Licensed under the Apache License, Version 2.0 (the "License");
4
4
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ class Overlay extends Component {
41
41
constructor ( player , options ) {
42
42
super ( player , options ) ;
43
43
44
- player . addChild ( this ) ;
45
-
46
44
[ 'start' , 'end' ] . forEach ( key => {
47
45
let value = this . options_ [ key ] ;
48
46
@@ -119,8 +117,7 @@ class Overlay extends Component {
119
117
fn = log [ args . shift ( ) ] ;
120
118
}
121
119
122
- args . unshift ( `overlay#${ this . id ( ) } : ` ) ;
123
- fn ( ...args ) ;
120
+ fn ( ...[ `overlay#${ this . id ( ) } : ` , ...args ] ) ;
124
121
}
125
122
126
123
/**
@@ -307,9 +304,9 @@ const plugin = function(options) {
307
304
// because it doesn't make sense to pass it to each Overlay component.
308
305
delete settings . overlays ;
309
306
310
- this . overlays_ = overlays . map (
311
- o => new Overlay ( this , videojs . mergeOptions ( settings , o ) )
312
- ) ;
307
+ this . overlays_ = overlays . map ( o => {
308
+ this . addChild ( 'Overlay' , videojs . mergeOptions ( settings , o ) ) ;
309
+ } ) ;
313
310
} ;
314
311
315
312
videojs . plugin ( 'overlay' , plugin ) ;
You can’t perform that action at this time.
0 commit comments