File tree 3 files changed +10
-12
lines changed
3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -102,16 +102,14 @@ export function eventsMixin (Vue: Class<Component>) {
102
102
vm . _events [ event ] = null
103
103
return vm
104
104
}
105
- if ( fn ) {
106
- // specific handler
107
- let cb
108
- let i = cbs . length
109
- while ( i -- ) {
110
- cb = cbs [ i ]
111
- if ( cb === fn || cb . fn === fn ) {
112
- cbs . splice ( i , 1 )
113
- break
114
- }
105
+ // specific handler
106
+ let cb
107
+ let i = cbs . length
108
+ while ( i -- ) {
109
+ cb = cbs [ i ]
110
+ if ( cb === fn || cb . fn === fn ) {
111
+ cbs . splice ( i , 1 )
112
+ break
115
113
}
116
114
}
117
115
return vm
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ if (process.env.NODE_ENV !== 'production') {
41
41
? vm . options
42
42
: vm . _isVue
43
43
? vm . $options || vm . constructor . options
44
- : vm || { }
44
+ : vm
45
45
let name = options . name || options . _componentTag
46
46
const file = options . __file
47
47
if ( ! name && file ) {
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ export default class TemplateRenderer {
207
207
if ( this . clientManifest ) {
208
208
const initial = this . preloadFiles . filter ( ( { file } ) => isJS ( file ) )
209
209
const async = ( this . getUsedAsyncFiles ( context ) || [ ] ) . filter ( ( { file } ) => isJS ( file ) )
210
- const needed = [ initial [ 0 ] ] . concat ( async || [ ] , initial . slice ( 1 ) )
210
+ const needed = [ initial [ 0 ] ] . concat ( async , initial . slice ( 1 ) )
211
211
return needed . map ( ( { file } ) => {
212
212
return `<script src="${ this . publicPath } ${ file } " defer></script>`
213
213
} ) . join ( '' )
You can’t perform that action at this time.
0 commit comments