|
1 | 1 | /*!
|
2 |
| - * Vue.js v2.5.20 |
| 2 | + * Vue.js v2.5.21 |
3 | 3 | * (c) 2014-2018 Evan You
|
4 | 4 | * Released under the MIT License.
|
5 | 5 | */
|
@@ -2903,7 +2903,7 @@ function mountComponent (
|
2903 | 2903 | // component's mounted hook), which relies on vm._watcher being already defined
|
2904 | 2904 | new Watcher(vm, updateComponent, noop, {
|
2905 | 2905 | before: function before () {
|
2906 |
| - if (vm._isMounted) { |
| 2906 | + if (vm._isMounted && !vm._isDestroyed) { |
2907 | 2907 | callHook(vm, 'beforeUpdate');
|
2908 | 2908 | }
|
2909 | 2909 | }
|
@@ -3844,9 +3844,10 @@ function renderList (
|
3844 | 3844 | ret[i] = render(val[key], key, i);
|
3845 | 3845 | }
|
3846 | 3846 | }
|
3847 |
| - if (isDef(ret)) { |
3848 |
| - (ret)._isVList = true; |
| 3847 | + if (!isDef(ret)) { |
| 3848 | + ret = []; |
3849 | 3849 | }
|
| 3850 | + (ret)._isVList = true; |
3850 | 3851 | return ret
|
3851 | 3852 | }
|
3852 | 3853 |
|
@@ -5188,7 +5189,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
|
5188 | 5189 | value: FunctionalRenderContext
|
5189 | 5190 | });
|
5190 | 5191 |
|
5191 |
| -Vue.version = '2.5.20'; |
| 5192 | +Vue.version = '2.5.21'; |
5192 | 5193 |
|
5193 | 5194 | /* */
|
5194 | 5195 |
|
@@ -6846,7 +6847,7 @@ function genComponentModel (
|
6846 | 6847 |
|
6847 | 6848 | el.model = {
|
6848 | 6849 | value: ("(" + value + ")"),
|
6849 |
| - expression: ("\"" + value + "\""), |
| 6850 | + expression: JSON.stringify(value), |
6850 | 6851 | callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
|
6851 | 6852 | };
|
6852 | 6853 | }
|
@@ -9467,7 +9468,7 @@ function processKey (el) {
|
9467 | 9468 | var parent = el.parent;
|
9468 | 9469 | if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
|
9469 | 9470 | warn$2(
|
9470 |
| - "Do not use v-for index as key on <transtion-group> children, " + |
| 9471 | + "Do not use v-for index as key on <transition-group> children, " + |
9471 | 9472 | "this is the same as not using keys."
|
9472 | 9473 | );
|
9473 | 9474 | }
|
@@ -10584,7 +10585,9 @@ function genChildren (
|
10584 | 10585 | el$1.tag !== 'template' &&
|
10585 | 10586 | el$1.tag !== 'slot'
|
10586 | 10587 | ) {
|
10587 |
| - var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : ""; |
| 10588 | + var normalizationType = checkSkip |
| 10589 | + ? state.maybeComponent(el$1) ? ",1" : ",0" |
| 10590 | + : ""; |
10588 | 10591 | return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
|
10589 | 10592 | }
|
10590 | 10593 | var normalizationType$1 = checkSkip
|
|
0 commit comments