File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Expand file tree Collapse file tree 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>) {
102102 vm . _events [ event ] = null
103103 return vm
104104 }
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
115113 }
116114 }
117115 return vm
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ if (process.env.NODE_ENV !== 'production') {
4141 ? vm . options
4242 : vm . _isVue
4343 ? vm . $options || vm . constructor . options
44- : vm || { }
44+ : vm
4545 let name = options . name || options . _componentTag
4646 const file = options . __file
4747 if ( ! name && file ) {
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ export default class TemplateRenderer {
207207 if ( this . clientManifest ) {
208208 const initial = this . preloadFiles . filter ( ( { file } ) => isJS ( file ) )
209209 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 ) )
211211 return needed . map ( ( { file } ) => {
212212 return `<script src="${ this . publicPath } ${ file } " defer></script>`
213213 } ) . join ( '' )
You can’t perform that action at this time.
0 commit comments