Skip to content

Commit

Permalink
Merge e38a504 into e026d9e
Browse files Browse the repository at this point in the history
  • Loading branch information
webdeb committed Aug 5, 2017
2 parents e026d9e + e38a504 commit 530fa14
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
22 changes: 15 additions & 7 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "preact",
"version": "8.2.1",
"version": "8.2.2",
"description": "Fast 3kb React alternative with the same ES6 API. Components & Virtual DOM.",
"main": "dist/preact.js",
"jsnext:main": "dist/preact.esm.js",
Expand Down Expand Up @@ -120,13 +120,21 @@
},
"babel": {
"presets": [
["env", {
"loose": true,
"exclude": ["transform-es2015-typeof-symbol"],
"targets": {
"browsers": ["last 2 versions", "IE >= 9"]
[
"env",
{
"loose": true,
"exclude": [
"transform-es2015-typeof-symbol"
],
"targets": {
"browsers": [
"last 2 versions",
"IE >= 9"
]
}
}
}]
]
],
"plugins": [
"transform-object-rest-spread",
Expand Down
4 changes: 3 additions & 1 deletion src/vdom/index.js
Expand Up @@ -35,7 +35,9 @@ export function isNamedNode(node, nodeName) {
*/
export function getNodeProps(vnode) {
let props = extend({}, vnode.attributes);
props.children = vnode.children;
if (vnode.children!==undefined) {
props.children = vnode.children;
}

let defaultProps = vnode.nodeName.defaultProps;
if (defaultProps!==undefined) {
Expand Down

0 comments on commit 530fa14

Please sign in to comment.