|
|
@@ -1,5 +1,5 @@
|
|
|
/*!
|
|
|
- * Vue.js v2.1.5
|
|
|
+ * Vue.js v2.1.6
|
|
|
* (c) 2014-2016 Evan You
|
|
|
* Released under the MIT License.
|
|
|
*/
|
|
|
@@ -2764,7 +2764,7 @@ function normalizeArrayChildren (children, nestedIndex) {
|
|
|
var i, c, last;
|
|
|
for (i = 0; i < children.length; i++) {
|
|
|
c = children[i];
|
|
|
- if (c == null) { continue }
|
|
|
+ if (c == null || typeof c === 'boolean') { continue }
|
|
|
last = res[res.length - 1];
|
|
|
// nested
|
|
|
if (Array.isArray(c)) {
|
|
|
@@ -3587,7 +3587,7 @@ Object.defineProperty(Vue$3.prototype, '$isServer', {
|
|
|
get: isServerRendering
|
|
|
});
|
|
|
|
|
|
-Vue$3.version = '2.1.5';
|
|
|
+Vue$3.version = '2.1.6';
|
|
|
|
|
|
/* */
|
|
|
|
|
|
@@ -3724,7 +3724,7 @@ var isHTMLTag = makeMap(
|
|
|
// this map is intentionally selective, only covering SVG elements that may
|
|
|
// contain child elements.
|
|
|
var isSVG = makeMap(
|
|
|
- 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font,' +
|
|
|
+ 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,' +
|
|
|
'font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
|
|
|
'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
|
|
|
true
|
|
|
@@ -7698,14 +7698,18 @@ function genChildren (el, checkSkip) {
|
|
|
function canSkipNormalization (children) {
|
|
|
for (var i = 0; i < children.length; i++) {
|
|
|
var el = children[i];
|
|
|
- if (el.for || el.tag === 'template' || el.tag === 'slot' ||
|
|
|
- (el.if && el.ifConditions.some(function (c) { return c.tag === 'template'; }))) {
|
|
|
+ if (needsNormalization(el) ||
|
|
|
+ (el.if && el.ifConditions.some(function (c) { return needsNormalization(c.block); }))) {
|
|
|
return false
|
|
|
}
|
|
|
}
|
|
|
return true
|
|
|
}
|
|
|
|
|
|
+function needsNormalization (el) {
|
|
|
+ return el.for || el.tag === 'template' || el.tag === 'slot'
|
|
|
+}
|
|
|
+
|
|
|
function genNode (node) {
|
|
|
if (node.type === 1) {
|
|
|
return genElement(node)
|