Skip to content

Commit 2ade367

Browse files
authored
Merge pull request #33 from quicoto/source-datamodel-without-domrefs
fix: avoid adding dom references to provided dataModel
2 parents ac44c78 + 3f7551b commit 2ade367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ export default (config = {}) => {
1818
attributeBind = `data-bind`,
1919
attributeModel = `data-model`,
2020
customEventPrefix = `twowaydatabinding`,
21-
dataModel = {},
2221
domRefPrefix = `$`,
2322
events = [`keyup`, `change`],
2423
pathDelimiter = `.`
2524
} = config;
25+
const dataModel = { ...config.dataModel };
2626
let _proxy;
2727

2828
/**

0 commit comments

Comments
 (0)