Skip to content

Commit f7a6372

Browse files
thetpetschki
andauthored
Update src/core/basepattern.js
Co-authored-by: Peter Mathis <[email protected]>
1 parent b28d9ec commit f7a6372

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/basepattern.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,12 @@ class BasePattern {
105105
}
106106

107107
emit_update(action = undefined, options = {}) {
108-
options = Object.assign({
108+
options = {
109109
pattern: this.name,
110110
dom: this.el,
111111
action: action,
112-
}, options);
112+
...options,
113+
}
113114
this.el.dispatchEvent(events.update_event(options));
114115
}
115116

0 commit comments

Comments
 (0)