diff --git a/dist/index.js b/dist/index.js index 349fc00..d464ae5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -132,7 +132,9 @@ var createTextElement = function (text$$1) { return !text(text$$1) ? undefined : var considerSvg = function (vnode$$1) { return !svg(vnode$$1) ? vnode$$1 : assign(vnode$$1, { data: omit('props', extend(vnode$$1.data, - { ns: 'http://www.w3.org/2000/svg', attrs: vnode$$1.data.props } + { ns: 'http://www.w3.org/2000/svg', attrs: omit('className', extend(vnode$$1.data.props, + { class: vnode$$1.data.props ? vnode$$1.data.props.className : undefined } + )) } )) }, { children: undefinedv(vnode$$1.children) ? undefined : vnode$$1.children.map(function (child) { return considerSvg(child); }) diff --git a/package.json b/package.json index d762ad2..924a5dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "snabbdom-pragma", - "version": "2.3.0", + "version": "2.4.0", "description": "'NotReact.createElement' pragma although for snabbdom", "keywords": [ "snabbdom",