mesh-envoy
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -1,2 +0,2 @@ | ||
import { EMPTY_OBJ, Lifecycle, NO_OP, isArray, isBrowser, isFunction, isNullOrUndef, isNumber, isStringOrNumber, isUndefined, throwError } from 'mesh-envoy-shared'; | ||
import { EMPTY_OBJ, Lifecycle, NO_OP, isArray, isBrowser, isFunction, isNullOrUndef, isNumber, isObject, isStringOrNumber, isUndefined, throwError } from 'mesh-envoy-shared'; | ||
@@ -37,3 +37,3 @@ var toConsumableArray = function (arr) { | ||
handler.bind(data).apply(undefined, toConsumableArray(args.concat(params))); | ||
handler.apply(undefined, [data].concat(toConsumableArray(args.concat(params)))); | ||
}; | ||
@@ -1137,3 +1137,5 @@ } else { | ||
if (!isUndefined(children) && children.length === 1 && isUndefined(children[0].sel)) { | ||
if (isNumber(children[0].text)) { | ||
if (!isObject(children[0])) { | ||
throwError(newVnode.sel + ' has unvalid children ' + children[0]); | ||
} else if (isNumber(children[0].text)) { | ||
children[0].text = '' + children[0].text; | ||
@@ -1145,2 +1147,5 @@ } | ||
for (var key in attrs) { | ||
if (isNullOrUndef(attrs[key])) { | ||
throwError(newVnode.sel + ' has an invalid attribute ' + attrs[key]); | ||
} | ||
if (attrs[key].constructor.name === 'ObservableArray') { | ||
@@ -1283,2 +1288,5 @@ attrs[key] = attrs[key].peek(); | ||
input.children = input.children.map(function (child) { | ||
if (!isObject(child)) { | ||
throwError(input.sel + ' has an invalid child'); | ||
} | ||
return mount(child, context); | ||
@@ -1285,0 +1293,0 @@ }); |
{ | ||
"name": "mesh-envoy", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/dist.js", |
59037
1847