File tree Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"plugins" : [
3
- " lodash" ,
4
3
" transform-object-rest-spread" ,
5
4
" transform-flow-strip-types" ,
6
5
" add-module-exports"
Original file line number Diff line number Diff line change 13
13
"dependencies" : {
14
14
"debug" : " ^2.6.6" ,
15
15
"load-script" : " ^1.0.0" ,
16
- "lodash" : " ^4.17.4" ,
17
16
"sister" : " ^3.0.0"
18
17
},
19
18
"description" : " YouTube IFrame Player API abstraction." ,
20
19
"devDependencies" : {
21
20
"ava" : " ^0.19.1" ,
22
21
"babel-cli" : " ^6.24.1" ,
23
22
"babel-plugin-add-module-exports" : " ^0.2.1" ,
24
- "babel-plugin-lodash" : " ^3.2.11" ,
25
23
"babel-plugin-transform-flow-strip-types" : " ^6.22.0" ,
26
24
"babel-plugin-transform-object-rest-spread" : " ^6.23.0" ,
27
25
"babel-plugin-transform-runtime" : " ^6.23.0" ,
Original file line number Diff line number Diff line change 1
1
// @flow
2
2
3
- import _ from 'lodash' ;
4
3
import createDebug from 'debug' ;
5
4
import functionNames from './functionNames' ;
6
5
import eventNames from './eventNames' ;
@@ -29,7 +28,7 @@ YouTubePlayer.proxyEvents = (emitter: EmitterType): EventHandlerMapType => {
29
28
const events = { } ;
30
29
31
30
for ( const eventName of eventNames ) {
32
- const onEventName = 'on' + _ . upperFirst ( eventName ) ;
31
+ const onEventName = 'on' + eventName . slice ( 0 , 1 ) . toUpperCase ( ) + eventName . slice ( 1 ) ;
33
32
34
33
events [ onEventName ] = ( event ) => {
35
34
debug ( 'event "%s"' , onEventName , event ) ;
You can’t perform that action at this time.
0 commit comments