Skip to content

Commit 9642bbf

Browse files
committed
style tweaks
1 parent e9b8887 commit 9642bbf

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

src/pipeline.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { getRouteConfig, resolveAsyncComponent, isPromise } from './util'
1+
import {
2+
isPromise,
3+
getRouteConfig,
4+
resolveAsyncComponent
5+
} from './util'
26

37
/**
48
* Determine the reusability of an existing router view.
@@ -220,9 +224,7 @@ export function activate (view, transition, depth, cb, reuse) {
220224
}
221225

222226
if (activateHook) {
223-
transition.callHooks(activateHook, component, afterActivate, {
224-
cleanup: cleanup
225-
})
227+
transition.callHooks(activateHook, component, afterActivate, { cleanup })
226228
} else {
227229
afterActivate()
228230
}
@@ -286,7 +288,7 @@ function loadData (component, transition, hook, cb, cleanup) {
286288
component.$emit('route-data-loaded', component)
287289
cb && cb()
288290
} else {
289-
promises[0].constructor.all(promises).then(_ => {
291+
promises[0].constructor.all(promises).then(() => {
290292
component.$loadingRouteData = false
291293
component.$emit('route-data-loaded', component)
292294
cb && cb()

src/transition.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
import { warn, mapParams, isPromise } from './util'
21
import {
3-
activate, deactivate, reuse,
4-
canActivate, canDeactivate, canReuse
2+
warn,
3+
mapParams,
4+
isPromise
5+
} from './util'
6+
7+
import {
8+
activate,
9+
deactivate,
10+
canActivate,
11+
canDeactivate,
12+
reuse,
13+
canReuse
514
} from './pipeline'
615

716
/**

0 commit comments

Comments
 (0)