File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,6 @@ export default function (Vue) {
39
39
this . keepAlive = false
40
40
warn ( '<router-view> does not support keep-alive.' )
41
41
}
42
- /* istanbul ignore if */
43
- if ( this . waitForEvent ) {
44
- this . waitForEvent = null
45
- warn (
46
- '<router-view> does not support wait-for. Use ' +
47
- 'the acitvate route hook instead.'
48
- )
49
- }
50
42
51
43
// all we need to do here is registering this view
52
44
// in the router. actual component switching will be
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ export default exports
9
9
* Warn stuff.
10
10
*
11
11
* @param {String } msg
12
- * @param {Error } [err]
13
12
*/
14
13
15
- export function warn ( msg , err ) {
14
+ export function warn ( msg ) {
16
15
/* istanbul ignore next */
17
16
if ( window . console ) {
18
17
console . warn ( '[vue-router] ' + msg )
19
- if ( err ) {
20
- console . warn ( err . stack )
18
+ /* istanbul ignore if */
19
+ if ( ! exports . Vue || exports . Vue . config . debug ) {
20
+ console . warn ( new Error ( 'warning stack trace:' ) . stack )
21
21
}
22
22
}
23
23
}
You can’t perform that action at this time.
0 commit comments