Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createElement(type, props, component) {
if (props.hasOwnProperty(STYLE)) {
const style = props[STYLE];
const node = DriverDOM.createElement(type, {
...props,
[STYLE]: null,
}, component);
driver.setStyle(node, style);
return node;
} else {
return DriverDOM.createElement(type, props, component);
}
},
addEventListener(node, eventName, eventHandler, props) {
createElement(type, props, component) {
return DriverDOM.createElement(type, props, component, true);
},
setStyle(node, style) {
createElement(type, props, component) {
if (props.hasOwnProperty(STYLE)) {
const style = props[STYLE];
const node = DriverDOM.createElement(type, {
...props,
[STYLE]: null,
}, component);
driver.setStyle(node, style);
return node;
} else {
return DriverDOM.createElement(type, props, component);
}
},
addEventListener(node, eventName, eventHandler, props) {