forked from enviPath/enviPy
Current Dev State
This commit is contained in:
10
static/js/ketcher2/node_modules/preact/src/clone-element.js
generated
vendored
Normal file
10
static/js/ketcher2/node_modules/preact/src/clone-element.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
import { extend } from './util';
|
||||
import { h } from './h';
|
||||
|
||||
export function cloneElement(vnode, props) {
|
||||
return h(
|
||||
vnode.nodeName,
|
||||
extend(extend({}, vnode.attributes), props),
|
||||
arguments.length>2 ? [].slice.call(arguments, 2) : vnode.children
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user