|
1 | 1 | /*!
|
2 |
| - * Vue.js v2.1.5 |
| 2 | + * Vue.js v2.1.6 |
3 | 3 | * (c) 2014-2016 Evan You
|
4 | 4 | * Released under the MIT License.
|
5 | 5 | */
|
@@ -2764,7 +2764,7 @@ function normalizeArrayChildren (children, nestedIndex) {
|
2764 | 2764 | var i, c, last;
|
2765 | 2765 | for (i = 0; i < children.length; i++) {
|
2766 | 2766 | c = children[i];
|
2767 |
| - if (c == null) { continue } |
| 2767 | + if (c == null || typeof c === 'boolean') { continue } |
2768 | 2768 | last = res[res.length - 1];
|
2769 | 2769 | // nested
|
2770 | 2770 | if (Array.isArray(c)) {
|
@@ -3587,7 +3587,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
|
3587 | 3587 | get: isServerRendering
|
3588 | 3588 | });
|
3589 | 3589 |
|
3590 |
| -Vue$3.version = '2.1.5'; |
| 3590 | +Vue$3.version = '2.1.6'; |
3591 | 3591 |
|
3592 | 3592 | /* */
|
3593 | 3593 |
|
@@ -3724,7 +3724,7 @@ var isHTMLTag = makeMap(
|
3724 | 3724 | // this map is intentionally selective, only covering SVG elements that may
|
3725 | 3725 | // contain child elements.
|
3726 | 3726 | var isSVG = makeMap(
|
3727 |
| - 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font,' + |
| 3727 | + 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,' + |
3728 | 3728 | 'font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
|
3729 | 3729 | 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
|
3730 | 3730 | true
|
@@ -7698,14 +7698,18 @@ function genChildren (el, checkSkip) {
|
7698 | 7698 | function canSkipNormalization (children) {
|
7699 | 7699 | for (var i = 0; i < children.length; i++) {
|
7700 | 7700 | var el = children[i];
|
7701 |
| - if (el.for || el.tag === 'template' || el.tag === 'slot' || |
7702 |
| - (el.if && el.ifConditions.some(function (c) { return c.tag === 'template'; }))) { |
| 7701 | + if (needsNormalization(el) || |
| 7702 | + (el.if && el.ifConditions.some(function (c) { return needsNormalization(c.block); }))) { |
7703 | 7703 | return false
|
7704 | 7704 | }
|
7705 | 7705 | }
|
7706 | 7706 | return true
|
7707 | 7707 | }
|
7708 | 7708 |
|
| 7709 | +function needsNormalization (el) { |
| 7710 | + return el.for || el.tag === 'template' || el.tag === 'slot' |
| 7711 | +} |
| 7712 | + |
7709 | 7713 | function genNode (node) {
|
7710 | 7714 | if (node.type === 1) {
|
7711 | 7715 | return genElement(node)
|
|
0 commit comments